Explain the 1 s and 2s complement method of binary addition
Answers
Answered by
0
Answer:
Step-by-step explanation:
find the sum of the following by using 2’s complement:
(i) -1011 and -0101
Solution:
+ 1 0 1 1 ⇒ 0 1 0 1 1
- 0 1 0 1 ⇒ 1 1 0 1 1 (2’s complement)
(Carry 1 discarded) 0 0 1 1 0
Hence the sum is + 0110.
(ii) + 0111 and – 0011.
Solution:
+ 0 1 1 1 ⇒ 0 0 1 1 1
- 0 0 1 1 ⇒ 1 1 1 0 1
(Carry 1 discarded) 0 0 1 0 0
Hence the sum is + 0100.
Similar questions
Physics,
6 months ago
Chemistry,
6 months ago
English,
6 months ago
Chemistry,
11 months ago
Social Sciences,
11 months ago
Political Science,
1 year ago