0

I learned that in C++, int main() can be left without a return-statement, at which point it defaults to returning 0. I am wondering if this is also true in C? Would the program cause an error if the function definition is int main(), but its body doesn't contain a return statement?

Claire
  • 167
  • 4

0 Answers0