Regarding main() function

Where does the value returned by this code go ?

int main()
{
/*

Prg Code

*/
}
Can we do something with this returned value?I mean to do things within the memory using this because it directly links with the memory.(Its true, isn't it?)
Normally this value is returned directly to the operating system, but you can pipe it out to where ever you want. A common example is using it as a simple way to return an error code to say a batch file for example. Inside the batch file you might have a set of if then conditions that change the next step to be executed based on that error code.
Topic archived. No new replies allowed.