By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,363 Members | 1,719 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,363 IT Pros & Developers. It's quick & easy.

Use of "Exit()" in C

P: 1
To All,

What is the difference between the following Exit code??

Exit (0)??

Exit(1)??

Exit (2)??

Exit (3)??


Thanks!
Aug 23 '07 #1
Share this Question
Share on Google+
1 Reply


Expert 10K+
P: 11,448
To All,

What is the difference between the following Exit code??

Exit (0)??

Exit(1)??

Exit (2)??

Exit (3)??


Thanks!
It's "exit", not "Exit". Except for exit(0) all the others have implementation defined
behaviour. You should only use EXIT_SUCCESS or EXIT_FAILURE for the
parameter value.

kind regards,

Jos
Aug 23 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.