Making a robust program means making a program which will not fail or crash for any given set of inputs, or in most of the condition. Robustness can be checked by doing white box testing, wherein you check all the possible paths, that your program can go through. Some simple thing to keep in mind is the boundary conditions, and unexpected inputs.
e.g.
assumme a simple program,
int a,b;
scanf("%d %d",&a,&b);
int sum = a +b;
printf("%d",sum);
Now this program looks veru simple, but even such simple program may crash , in following conditions.
1) It is expected to give integre inputs. what if the user give float aor string as an input?
2) what if a and b are large enough? There will be an overflow. This is not taken care of.
So likewise, every program will have some inputs which will make program crash or give unexpected behaviour. If you want your program to be robust, try to find out these conditions.
2006-10-29 15:55:40
·
answer #1
·
answered by manoj Ransing 3
·
1⤊
0⤋
Actually, it's a characteristic of any good program. A program is said to be "robust" if it resists failure. Typically, this means that any possible errors are detected and handled or prevented rather than allowing the program to behave erratically.
2006-10-29 15:15:58
·
answer #2
·
answered by jaywalk57 2
·
0⤊
0⤋
Robustness - Software written in any language that can accommodate the many mistakes that human beings make and not crash the computer.
2006-10-29 15:16:42
·
answer #3
·
answered by Anonymous
·
0⤊
0⤋
Robustness is the ability to get the work done from other processor if one fails in multiprocessor-based systems...
2006-10-29 17:26:58
·
answer #4
·
answered by Aarthi R 2
·
0⤊
0⤋
...if your program will execute in a variety of system or platforms, with a high degree of reliability; then u can claim that ur program is robust....hope you get it....
2006-10-29 17:00:09
·
answer #5
·
answered by joj 2
·
0⤊
0⤋
Go to www.dictionary.com, honey
2006-10-29 15:10:49
·
answer #6
·
answered by Liz♥ 4
·
0⤊
0⤋