Yep, it does, it's defined in C99 6.2.5c9. Took me a while to convince myself it's not undefined / arch specific / etc.
-
-
This Tweet is unavailable.
-
- 3 more replies
-
-
-
Hmm. Readable no. The expectation would be -10 but since foo is unsigned I *think* it’ll end up being freaking huge. the negative sign would be the first bit but since unsigned it’s gonna consider that bit part of the value. Been years since I did C.
-
flipping the first bit is a very reasonable expectation, probably the least surprising one, and that's definitely not what it does :)
End of conversation
New conversation -
-
-
This Tweet is unavailable.
-
#include <stdint.h>
End of conversation
-
-
-
2^64 - 10
- 2 more replies
New conversation -
-
-
2^64 is not the max for that type :)
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.