Computer Science for IGCSE & O level - Data Representation (Section 16 - No. 14)

How does two's complement representation handle negative numbers?
By using a leading '1' for positive numbers and a leading '0' for negative numbers.
By inverting all the bits of the positive counterpart.
By inverting all the bits and adding 1 to the result.
By using a separate sign bit.

Explanation

Two's complement inverts the bits and adds 1 to the binary representation of a positive number to obtain its negative equivalent.

Comments (0)

Advertisement