I know that the C++ standard says that return 0 is inserted at the end of main() if no return statement is given; however, I often see recently-wri
return 0
main()
Makes it clear to other programmers that you didn't just forget to put the return statement there.
Some compilers may issue a warning if you don't return anything.
Shows explicitly what the function returns.
Many programmers don't know about this rule.