Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
mmariani
· 13y ago · 0 comments
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?
Comments
[–]
hbar
13y ago
It's undefined in the spec. So GCC and clang are both correct.
[–]
steveklabnik
13y ago
It's undefined behaviour, so you won't get a consistent answer.