Why is 2's complement used?
Why is 2's complement used?
Model answer
Two's-complement representation encodes signed integers so addition and subtraction can use the same binary adder structure. To form the negative of a fixed-width value, invert its bits and add one. Overflow still needs to be handled according to the operation and width.