# GATE | Sudo GATE 2020 Mock II (10 January 2019) | Question 35

When two 8-bit numbers (A7 A6 … A0) and (B7 B6 … B0) in 2’s complement representation (with A0 and B0 as the least significant bits) are added using ripple carry adder, the sum bits obtained are (S7 S6 … S0) and the carry bits are (C7 C6 … C0). Which of the following statement(s) is/are correct ?

1. If two numbers with the same sign (both positive or both negative) are added, then overflow occurs if and only if the result has the opposite sign.
2. The overflow and carry out can each occur without the other. In unsigned numbers, carry out is equivalent to overflow. In two’s complement, carry out tells you nothing about overflow.

(A) Only 1
(B) Only 2
(C) Both 1 and 2
(D) None of these.

Explanation: Both statements are correct regarding overflow. Option (C) is true.

Quiz of this Question

My Personal Notes arrow_drop_up
Article Tags :

Be the First to upvote.

Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.