Why char s(50) is declared
Sorry thats a mistake...I will correct it Thanks
what is significance of this line of codeif(argc!=3) exit(1);please explain it.
it is because while running through Command Line Argument you need to write programName num1 num2i.e., three parameters and if you don't pass 3 parameters then it will terminate execution
why we are taking exit(1) and not exit(0);
5 Comments
Why char s(50) is declared
ReplyDeleteSorry thats a mistake...I will correct it
DeleteThanks
what is significance of this line of code
ReplyDeleteif(argc!=3)
exit(1);
please explain it.
it is because while running through Command Line Argument you need to write
DeleteprogramName num1 num2
i.e., three parameters and if you don't pass 3 parameters then it will terminate execution
why we are taking exit(1) and not exit(0);
ReplyDelete