subtract the binary numbers normally and with 2s complement
subtract the binary numbers normally and with 2s complement
 100011-1100
Solution
Here, the number 100011 represents 35
and 1100 represents 12
Since we have 6 bit number, so 1100 can be written as 001100
So, to perform the subtraction using the 2\'s compliment
Step I
First, we take the compliment of 001100, which will be 110011
Now, add 1 to the rightmost digit to get
110100
Step II
Now,we add 110100 and 100011,to get
010111 which represents 23.
Now,
we do the normal subtraction
We need to subtract 1100 from 100011
i.e. 100011-1100=010111

