Computer Science, asked by meaditi0311, 4 days ago

Find (40)16 – (64)16 using 2’s complement.​

Answers

Answered by llKingFlirtyll
2

the two's complement method use 8bit representation (40)16 -(64)16

Explanation:

8 bit of 40 is : 101000

8 bit of 64 is :  0100 0000

To get 2's complement of binary number is 1's complement of given number plus 1 to the least significant bit (LSB).

hence the one's complement of 101000 is 010111

hence the one's complement of 01000000 is 10111111

Now add 1 bit to the last bit

hence the numbers will be 011000 and 11000000

Now perform the subtraction on it the answer is 11101000

that is 8+32+64+128 =232

Answered by arshiyamittal08
0

Answer:

Explanation:

How do you calculate 2's complement?

To get 2's complement of binary number is 1's complement of given number plus 1 to the least significant bit (LSB). For example 2's complement of binary number 10010 is (01101) + 1 = 01110.

Similar questions