blob: 5e4000b04cb1b990382cdfc640e6828eaea7b328 (
plain)
1
2
3
4
5
6
7
|
The binary number is =
1001
The answer produced is clearly wrong because the correct answer (+9) is out of range. Overflow occurs when the sum is out of range. For 4-bit signed numb
ers,that range is -8 <= sum <= 7.
|