Where does the returned value for 'main' function go?
问题 In C, a function always returns its value to the calling function and never to itself ( if return type is not void ). Like, int main() But since ' main ' function is called by the Operating System , which is not a function . So, whom does the 'main' function returns its value? Where does the value go, when its returned using the expression return(0); at the end of the program? 回答1: This is completely OS-specific, but usually the OS invokes a program by Setting up the program's address space,