Discussion in 'C' started by rina, Aug 20, 2011.
wat is d difference betwn return 0 & return 1?plz explain in detail.
when you call a function like f(x) , the value that we give to function "x" have changed in what we program , to a new value that we called "f(x)" or "y" for example , or any thing else.
it not different what return , its important what we need .
in an if (condition) , if the condition be one its true and if condition was zero its false .
really good question "rina"
Many operating systems test the return value.
The normal convention is that an exit value of zero means the program ran successfully,while a non zero value means there is a problem.The use of return 0 will
indicate that program was successfully executed
Not successfully executed but successfully terminated.
Separate names with a comma.