4 ms·
Note that this is a change in C99 - in C90 spec just says: "A return from the initial call to the main function is equivalent to calling the exit function with
by TheNewAndy 9y ago
Note that this is a change in C99 - in C90 spec just says:
"A return from the initial call to the main function is equivalent to calling the exit function
with the value returned by the main function as its argument. If the main function executes a
return that specifies no value, the termination status returned to the host environment is
undefined."
- Joky 9y ago> " the termination status returned to the host environment is undefined." This is still not the same as "undefined behavior" though.