cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
returning value to Operating System
returning value to Operating System
Aug 11, 2012 at 6:33pm UTC
YGAME
(6)
I'm new in C , and i couldn't figure it out the need to return the value from function to the OS, like return 0; or exit(1); . please someone clarify this.
thanx.
Aug 11, 2012 at 6:51pm UTC
Bobby94
(22)
It tells the OS that everything went ok. Any number other than 0 tells the OS "Uh oh, we've done something wrong".
Last edited on
Aug 11, 2012 at 6:55pm UTC
Aug 11, 2012 at 6:56pm UTC
YGAME
(6)
actually i do know the syntax but i want to know why does it return a value to operating system.
Aug 11, 2012 at 7:05pm UTC
YGAME
(6)
thanx bobby94
Topic archived. No new replies allowed.