On Fri, 2 Jan 2015 12:21:50 +0000 (UTC), Juha Nieminen
<nos...@thanks.invalid> wrote:
>JiiPee <
n...@notvalid.com> wrote:
>> Also imo best return is: return EXIT_SUCCESS;
>> I dont like return 0; :)
>
>Doesn't the C++ standard state that a returnless main() will return
>EXIT_SUCCESS by default? Thus it's ok to not write any return at all
>(unless you want to return an error code).
C++98 will return zero (which is like, but not identical to,
EXIT_SUCCESS). C99 and later are the same, but C89 allows the form
(no return at the end of main), but leaves the actual value returned
to the OS undefined.