Re: The difference between return and exit()?
From: Alex Vinokur (alexvn_at_big-foot.com)
Date: 09/28/04
- Previous message: Verne Arase: "Re: Arithmetic Error on Sun Solaris GCC compiled program"
- In reply to: learning_C++: "The difference between return and exit()?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 28 Sep 2004 16:17:50 +0200
"learning_C++" <learning_c@hotmail.com> wrote in message news:44bd0859.0409280026.16dfcd53@posting.google.com...
> Hi,
> I often see the functions like exit() and close(). Can they replace
> return in the c program? Which header includes them?
> What is the difference between exit(0), exit(1) and exit(...)?
> Please give me some examples.
>
> Thanks,
The difference between return, exit() and abort() in C++ program can be seen at
http://groups.google.com/groups?selm=7d7jmn%24clg%241%40nnrp1.dejanews.com
--
Alex Vinokur
http://mathforum.org/library/view/10978.html
http://sourceforge.net/users/alexvn
- Previous message: Verne Arase: "Re: Arithmetic Error on Sun Solaris GCC compiled program"
- In reply to: learning_C++: "The difference between return and exit()?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|