Possible Duplicate:
What should main() return in C/C++?
This is a pretty basic question, I guess.
I've been programming for a year now but a friend of mine surprised me with a rather stupefying question.
Programs that start with 'int main()' on C++ seem to compile perfectly even with 'return 0;' removed and not replaced by any other return statement. And without a return statement at all, the program still shows that 'Process returned 0'.
Does this have any explanation? Sorry if my question is silly!