如果我要求 0xab 的 one's complement 要如何算
- prisoner26535Lv 71 decade agoFavorite Answer
1's complement is a way to represent negative integer by NOT each bit individually. In your case, 0xab is 1010 1011
becasue the MSb is 1 - so it is a negative number.
So, 0xab is the 1's complement representation of -84(10).
I hope this will make you young again.