Hey Guys,
I know this isn't a direct question about C, but it does relate.
When you want to get a two's complement of a number, you first get the one's compelement (or logicaly NOT it) and then add 1.
example:
0000 0011 = 3
1111 1100 = not
+1
---------------
1111 1101 = -3
So is the 2's complement just a unique number? Do I have to get over the fact that 1111 1101 isnt |3| in binary, but just unique?
1000 0000 = 128
0111 1111
+1
--------------
1000 0000 = -128
is -128 just an exception to the rule? i mean the sign bit has a double meaning?