Logic circuits
Which bit pattern represents −1 in 4-bit two's complement?
- A1111
- B1001
- C0001
Show answer and explanation
Answer: A. 1111
In two's complement, a negative number is obtained by inverting the bits of the positive number and adding 1. Inverting +1 (0001) gives 1110, and adding 1 gives 1111. Four-bit two's complement can represent −8 to +7. 1001 is −1 in sign-magnitude representation.