1.

Subtract 28(10) from 14(10) using 2’s complement.

Answer»

14 – 28 = -14.

14(10) = 01110(2), 29(10) = 11100(2)

1’s complement of 11100 is 00011

2’s complement is 00011 + 1 = 00100

Now add, minuend with subtrahend, i.e.,01110 + 00100= 10010

Find the 1’s complement of 10010 is 01101 and

2’s complement of 01101 is 01101 + 1 = 1110(1).



Discussion

No Comment Found

Related InterviewSolutions