GATE | GATE-CS-2002 | Question 21

In 2′ s complement addition, overflow
(A) is flagged whenever there is carry from sign bit addition
(B) cannot occur when a positive value is added to a negative value
(C) is flagged when the carries from sign bit and previous bit match
(D) none of the above


Answer: (B)

Explanation: is flagged when the carries from sign bit and previous bit DO NOT match. Refer http://en.wikipedia.org/wiki/Two%27s_complement#Addition

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.