Re:Main is usually a function, so when is it not? (2015)
by insulanus on Monday September 11, 2017 @05:27PM
(#15222514)
That's a good point, but the long running (although shrinking) gap between what the standard recommends, vs. what you can do with real compilers is one of the reasons that coding in C can be so error-prone.
I would argue that it's less than "perfectly" legal: The C standard lists it as a "common extension":
And on a practical level, it seems to me that the increasing proliferation of NX enforcement is cramping the acceptance of this extension.