$Remark:$

if the sign bit of both the signed numbers is not same as the sign bit of the product, then there is an overflow.

if the sign bit of both the signed numbers is not same as the sign bit of the product, then there is an overflow.

The Gateway to Computer Science Excellence

+11 votes

Consider addition in two's complement arithmetic. A carry from the most significant bit does not always correspond to an overflow. Explain what is the condition for overflow in two's complement arithmetic.

+14 votes

+9 votes

(a) In 2's complement addition Overflow happens only when :

- Sign bit of two input numbers is 0, and the result has sign bit 1.
- Sign bit of two input numbers is 1, and the result has sign bit 0.

52,345 questions

60,511 answers

201,930 comments

95,354 users