News for hackers. Stuff that matters.
Re:Main is usually a function, so when is it not? (2015) by anyfoo on Monday June 14, 2021 @04:56PM (#27508202)
Yes there is. I've demonstrated this in a sibling (or rather, cousin) comment, but in short, you can happily not return a value in main even if its type is "int main(void)". Try that with another function, and the compiler should at least warn. This might not be a special case of code generation, but it is a special case of error handling at least.

There are no comments on this comment yet.