Computer Science, asked by tasukhhanum, 8 months ago


8-bits 2's complement form of decimal number (-45) is ​

Answers

Answered by payalchatterje
0

Answer:

8-bits 2's complement form of decimal number (-45) is 0010 1101

Explanation:

For finding 2's complement of 45

First we have to find 1's complement and for 1's complement we need to find binary form of 45

Now,

45 \div 2 = 22 \: (remainder \: 1) \\ 22 \div 2 = 11 \: (remainder \: 0) \\ 11 \div 2 = 5 \: (remainder \: 1) \\ 5 \div 2 = 2 \: (remainder \: 1) \\ 2 \div 2 = 1 \: (remainder \: 0)

Binary of 45 = 101101

1's complement of 45 = reverse of Binary of 45 = 010010

1's complement of 45 =

1s \: complement \:  + 1

010010 + 1 = 1101 0011

So,

8-bits 2's complement form of decimal number (-45) is 0010 1101

Similar questions