Re:F() vs. F(void) in C vs. C++
by kazinator on Tuesday May 14, 2019 @12:53AM
(#19906864)
That was added in C99; previously, "falling off" the end of main without a return statement resulted in an indeterminate termination status. Countless sloppily written C programs had garbage termination statuses because of this, making it impossible for higher level programs (e.g. scripts) to reliably test for successful execution.
[ Parent
| on HN ]
There are no comments on this comment yet.