It's not necessary to use a return statement before the closing brace of the definition of main() either - if it reaches the end without seeing a return statement, it returns 0 automatically.