Computer Science, asked by ggsc54914, 24 days ago

Convert the following pairs of decimal numbers to 5 bit signed, 2’s
complement binary numbers and perform the addition and subtraction
between them. State whether overflow occurs or not.

Answers

Answered by narwaneajay
3

Explanation:

Step-by-step explanation:

(a) 4 and 11

binary equivalent of 4 in 5bit = 00100

binary equivalent of 11 in 5 bit = 01011

decimal number 4 in 2's complement

form = 11100

decimal number 11 in 2's complement

form = 10101

now,

11100

+10101

11 000 1

Since, we are doing addition on 5 bit numbers but the result of addition came in 6 digit, so there will be overflow.

Similar questions