0
Is return statement compulsory in int main() function?
As far as I know , a function must have return statement if its return type is not void. But I came across many codes where there was no return 0; statement in the int main() function. But the code was run successfully without any error. Why is it so?
2 Answers
+ 7
see lesson here. It will be automatically inserted by the compiler if not supplied