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
I often do it because I often compile code for straight C, so I either type it in out of habit or because the snippet I created main() from has the explicit return. There's no reason to remove it, so it usually stays.
Then again, there are times when I won't bother typing it in (maybe I realized I didn't need it) or I may have used a different snippet.