cppforever.com

Explicit return 0;

The function int main() returns 0 implicitly, if it has no return statement.

This behaviour is only for main(), not for the other functions.