what is the difference in exit(0),exit(1),exit(2) ?
how it differs from Return statement?
ganesh_bala
0
Newbie Poster
Recommended Answers
Jump to PostThe argument to the "exit()" function is passed back to the calling process by the operating system. If you run the program from a command line, a command line script may be able use the return value to cause it to do something, or it may simply ignore the return …
All 6 Replies
ashishchoure
9
Junior Poster
Salem
5,138
Posting Sage
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
kvprajapati
1,826
Posting Genius
Team Colleague
MosaicFuneral
812
Nearly a Posting Virtuoso
chandanraj
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.