Hacker News new | past | comments | ask | show | jobs | submit login

I just ran this after compiling it with clang-500.2.79 based on LLVM 3.3svn, and the output was 140. Maybe GCC is to blame?



It's undefined in the spec. So GCC and clang are both correct.


It's undefined behaviour, so you won't get a consistent answer.




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

Search: