Without a return statement, the main function uses return 0; by default return 0;
ยง 3.6.1
The return statement basically has the effect of exiting the main function (destroying any objects with automatic storage time) and calling std :: exit with the return value as an argument. If the control reaches the end of main without colliding with the return statement, the effect is that from the execution return 0;
billz source share