Computer Science, Operating Systems.
Two’s Complements Assuming that you are familiar with binary notation, two’s complements is EASY. Just remember, the first bit is negative. Consider word size of 4 bits, we have a bit pattern 0b1001. In unsigned integer, it is 1 × 2³ + 0 × 2² + 0 × 2¹ + 1 × 2⁰ = 8+0+0+1 = 9 In signed integer, it is