Re: function
- From: CBFalconer <cbfalconer@xxxxxxxxx>
- Date: Sat, 04 Aug 2007 17:56:25 -0400
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
.
- References:
- function
- From: kec26it15@xxxxxxxxx
- Re: function
- From: rossum
- function
- Prev by Date: Re: function
- Next by Date: Re: Choosing a PL - What you can do or how you do it?
- Previous by thread: Re: function
- Next by thread: Re: function
- Index(es):
Relevant Pages
|