Computer Science, asked by Parthshinde97, 1 day ago

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

Answers

Answered by shilpa85475
15

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

Similar questions