Open In App

GATE | GATE-CS-2002 | Question 21

Like Article
Like
Save
Share
Report

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


Last Updated : 28 Jun, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads