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
5.1k 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
5.1k points