It looks like you're new here. If you want to get involved, click one of these buttons!
1000 0000 -> -128
1000 0001 -> -127
1000 0011 -> -126
1111 1111 -> -1
1000 0000 -> -128 + 0 = -128
1000 0001 -> -128 + 1 = -127
1000 0011 -> -128 + 2 = -126
1111 1111 -> -128 + 127 = -1
We know that:
|INT_MIN| = |INT_MAX| + 1
INT_MIN = -2,147,483,648 then INT_MIN / (-1) = 2,147,483,648
10000000 00000000 00000000 00000000 = 2,147,483,648 in binary. BUT using two's complement, this binary value actually is -2,147,483,648.