Computer Science for IGCSE & O level - Data Representation (Section 2 - No. 34)

In two's complement representation, what is the range of values that can be represented in an 8-bit register?
0 to 255
-127 to 128
-128 to 127
-255 to 0

Explanation

In two's complement, the range is -2^(n-1) to 2^(n-1) - 1, where n is the number of bits. For 8 bits, this is -128 to 127.

Comments (0)

Advertisement