hi,
  The difference between return and exit() is that return only ends the
current function, while exit() ends the whole program. In main(),
return and exit() are identical.


On Wed, Jul 16, 2008 at 6:02 PM, John Matthews <[EMAIL PROTECTED]> wrote:

>   Just to hijack the thread slightly, what's the difference (if any)
> between return i and exit(i) when used within main()?
>
> BTW using return instead of exit doesn't appear to prevent functions
> registered with atexit() from being called, although I don't know if
> this is gcc-specific behaviour.
>
> John
>



>
>  
>


[Non-text portions of this message have been removed]

Reply via email to