Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: