) Find the sum of X and Y represented in 2’s complement format using 6bits if
X=01110 and Y=11001. (Note: X and Y both are 5 bit binary numbers represented in
2’s complement format)
Answers
Answered by
2
Answer:
hope it help you mark me
Step-by-step explanation:
x = 01110
= 0×2^4 + 1×2^3 + 1×2^2 + 1×2^1 + 0×2^0
= 0 + 8 + 4 + 2 + 0
= 14
y = 11001
y = 1×2^4 + 1×2^3 + 0×2^2 + 0×2^1 + 1×2^0
= 16 + 8 + 0 + 0 + 1
= 25
so x + y = 14 + 25 = 39
39 now in binary
39 = 32 + 4 + 2 + 1
= 2^5 + 2^2 + 2^1 + 2^0
= 1 × 2^5 + 0 × 2^4 + 0 × 2^3 + 1 × 2^2 + 1 × 2^1 + 1 × 2^0
= 100111
Similar questions