News for hackers. Stuff that matters.
Re:Main is usually a function, so when is it not? (2015) by samatman on Tuesday June 15, 2021 @03:39PM (#27520452)
Of course it's C code. It parses, and compiles, giving undefined behavior.

If C wanted to insist that main is a function, it could. That could be in the standard, and then these clever hacks wouldn't compile.

So no, you're dead wrong about that claim. So I'll go ahead and not be impressed with your commentary.

Of course a standards compliant C compiler could give you nasal demons, or delete your root directory, so it's not the sort of thing one should push to prod on a Friday.

It's just a hack.

There are no comments on this comment yet.