Return 0; and return 1;
#2

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.
Reply


Messages In This Thread
Return 0; and return 1; - by XProtocol - 28.12.2012, 06:39
Re: Return 0; and return 1; - by rockerman - 28.12.2012, 06:47
Re: Return 0; and return 1; - by XProtocol - 28.12.2012, 06:52
Re: Return 0; and return 1; - by Grim_ - 28.12.2012, 06:54
Re: Return 0; and return 1; - by rockerman - 28.12.2012, 07:01
Re: Return 0; and return 1; - by XProtocol - 28.12.2012, 09:14
Re: Return 0; and return 1; - by Threshold - 28.12.2012, 09:17
Re: Return 0; and return 1; - by tyler12 - 28.12.2012, 09:21
Re: Return 0; and return 1; - by XProtocol - 28.12.2012, 10:12

Forum Jump:


Users browsing this thread: 4 Guest(s)