On a sign-magnitude C implementation, ~~INT_MAX==INT_MIN. In particular, ~~ is not the identity.
-
-
Thus ~~INT_MAX = ~NEG_ZERO = ~0 = all one bits = -INT_MAX = INT_MIN.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
nice!
-
Again, I take this as proof that nobody has ever made a (valid) sign-magnitude C implementation.
End of conversation
New conversation -
-
-
also worth noting that ~INT_MAX can be a trap in sign and magnitude.
-
Yes, trap would be the consistent way to do it.
End of conversation
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.