139k views
4 votes
Suppose you are working with 4 bit 2's complement signed numbers. Which pairs of numbers, if added, will produce the wrong result (overflow).

User Mardo
by
8.5k points

1 Answer

5 votes

Answer:

-6 and -3

Step-by-step explanation:

4 bit 2's complement can represent numbers between -8 and +7.

Overflow can occur if the result is greater than 7 or less than -8.

If two numbers with the same sign positive or negative are added and the result gives an opposite sign,an overflow has occurred

User Harrison Cramer
by
8.3k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.