Thursday, October 28, 2010

Why return 0 gives in end of main function in c language?

The return code from a c program does not have to be zero.
Zero is a value that happens to indicate a successful completion of the program.

The use of this return code can be seen in this link for batch processing.

A return code of 4 usually indicates a warning has occurred.
A return code of 8 or more indicates an error.

No comments: