28.12.2012, 06:47
Usually zero is returned to the calling function or operating system when a program was executed successfully.
Other numbers may be returned if an error occurred during the execution, and the specific number would indicate the type of error. For example, say, if an error occurred while opening a file the value returned will be 1. This also helps in debugging programs.
Other numbers may be returned if an error occurred during the execution, and the specific number would indicate the type of error. For example, say, if an error occurred while opening a file the value returned will be 1. This also helps in debugging programs.