Tip:A–D to answerE for explanationV for videoS to reveal answer
Given that numbers A and B are two 8 bit 2’s complement numbers with A = 11111111, B = 11111111. Then sum A + B is ____
- A.
00000010
- B.
11111100
- C.
11111110
(Correct Answer) - D.
00000000
Explanation
2's Complement Addition (8-bit)
Given:
- A = 11111111 → (−1)
- B = 11111111 → (−1)
Sum: −1 + (−1) = −2
Convert −2 to 8-bit 2's complement:
- +2 = 00000010
- Invert = 11111101
- Add 1 = 11111110
✅ Final Answer: 11111110
Explanation
2's Complement Addition (8-bit)
Given:
- A = 11111111 → (−1)
- B = 11111111 → (−1)
Sum: −1 + (−1) = −2
Convert −2 to 8-bit 2's complement:
- +2 = 00000010
- Invert = 11111101
- Add 1 = 11111110
✅ Final Answer: 11111110