We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
It does if you're using a normal (signed) int. One bit is reserved for the sign and since you're flipping each bit you by definition are flipping the sign bit.
Flipping bits
You are viewing a single comment's thread. Return to all comments →
It does if you're using a normal (signed) int. One bit is reserved for the sign and since you're flipping each bit you by definition are flipping the sign bit.