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

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.


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

Search: