The function int main() returns 0 implicitly, if it has no return statement.
This behaviour is only for main(), not for the other functions.