Q. Write the 2’s compliment for 100110?
Solution:
The two’s complement of a binary number is obtained by:
1. Replacing all the 1s with 0s and the 0s with 1s. This is known as its one’s complement.
2. Adding 1 to this number by the rules of binary addition.
The 1’s complement of 100110 is 011001.
2’s complement is 011010.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.