Re:A Tour of C++, 3rd edition (covering C++20 plus a few lik...
by pjmlp on Sunday October 30, 2022 @10:15AM
(#33394684)
In C yes, on C++ it is required to return 0 if omited.
[ Parent
| on HN ]
Re:A Tour of C++, 3rd edition (covering C++20 plus a few lik...
by garaetjjte on Sunday October 30, 2022 @10:25AM
(#33394744)
C99 also defines it:
>5.1.2.2.3 Program termination [...] reaching the } that terminates the main function returns a value of 0.