To find the 2's complement of a binary number:
1. Invert the bits: \( 1010 \) becomes \( 0101 \).
2. Add 1 to the result: \( 0101 + 1 = 0110 \).
Thus, the 2's complement of \( 1010 \) is \( 0110 \).
Was this answer helpful?
0
0
Top AP PGECET Computer Science & Information Technology Questions