When two’s complement numbers are added, which condition reliably indicates signed overflow?

Correct answer C. The carry into the sign bit differs from the carry out of the sign bit

Explanation

Overflow is flagged as V = C(in to MSB) XOR C(out of MSB); equivalently, two operands of the same sign give a result of the opposite sign. A carry out of the MSB alone is normal in two's complement: -1 + -1 produces a carry out yet the answer -2 is correct. The carry flag signals unsigned overflow, while the V flag signals signed overflow.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.