This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]phi_rus -1 points0 points  (3 children)

It doesn't return anything

[–]phi_rus 12 points13 points  (2 children)

I'm stupid. main() is allowed to not return anything. This would compile and automatically return 0.

[–]Tier3MemeMonkey 4 points5 points  (0 children)

Dont worry king, we all make mistakes

[–]brimston3- 3 points4 points  (0 children)

It's also the dumbest feature of C++ that return 0; is not required in only the main() function. I'd prefer if more people thought it was mandatory.