Explore BrainMass

two two's-complement integers

I need to show the results of adding the following pairs of five-bit(i.e., one sign bit and four data bits) two's complement numbers and indicate whether or not overflow occurs for each case

a. 10110 + 10111 =

b. 11110 + 11101 =

c. 11111 + 01111 =

Thanks so much!

Solution Preview

To add two two's-complement integers, treat them as unsigned numbers, add them, and ignore any potential carry over (this is essentially the great advantage that ...

Solution Summary

Ideas to add two two's-complement integers are presented.