с: sizeof 1 + 1 #76

Open
soulne4ny opened this Issue Jan 6, 2017 · 0 comments

Projects

None yet

1 participant

@soulne4ny

http://hyperpolyglot.org/c

sizeof 1 + 1 is not 4 on intel, but 5! sizeof is unary operator of higher priority than plus.
That's why, it is not the same as golang's unsafe.Sizeof(1 + 1) which gives 8 on intel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment