Computer Science, asked by iamnotanagha2405, 10 months ago

Subtract 36 from 83 , using 2's complement

Answers

Answered by VineetaGara
27

Subtract 36 from 83 , using 2's complement, we will get the answer 47.

  • 83 in binary can be written as 1010011 and 36 in binary is 0100100
  • 2's compliment of 0100100 is 1011100
  • adding 83 with the 2's compliment of 36 , we get , 0101111. We should ignore the carry in 2's compliment .
  • 0101111 = 1 + 2 + 4 + 8 + 32 = 47 .
Answered by bommerakethan
9

Answer:

Subtract 36 from 83 , using 2's complement, we will get the answer 47.

83 in binary can be written as 1010011 and 36 in binary is 0100100

2's compliment of 0100100 is 1011100

adding 83 with the 2's compliment of 36 , we get , 0101111. We should ignore the carry in 2's compliment .

0101111 = 1 + 2 + 4 + 8 + 32 = 47 .

Similar questions