Best Practises

In a C++ program, should I include the return 0; thing?
I mean:
This:

#include <iostream> int main() { std::cout << "Hello world!"; return 0; }

or this:

#include <iostream> int main() { std::cout << "Hello world!"; }

What is the best practise? Should you include return 0;?

A simple Google (or search on StackOverflow, etc) would yield useful information. I’ll get you started

2 Likes