returning value to Operating System

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.
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
actually i do know the syntax but i want to know why does it return a value to operating system.
thanx bobby94
Topic archived. No new replies allowed.