Re: function



rossum wrote:
<kec26it15@xxxxxxxxx> wrote:

In C whwn we call a function the called function may return a
value to main function .but sometimes we specify within main
function return 0.then where do this 0 will be written

int main(int argc, char *argv[]) {
/* Do stuff */
return 0;
}

Return 0, or any other value, just as you would from any other
function. The return value should be picked up by the operating
system. Try returning 1 and see what you get.

No, don't. That is not a reliable return value. The possibilities
are exactly: 0, EXIT_SUCCESS, EXIT_FAILURE. The non-zero values
require "#include <stdlib.h>".

--
"Vista is finally secure from hacking. No one is going to 'hack'
the product activation and try and steal the o/s. Anyone smart
enough to do so is also smart enough not to want to bother."



--
Posted via a free Usenet account from http://www.teranews.com

.



Relevant Pages