Computer Science for IGCSE & O level - Data Representation (Section 5 - No. 29)

What does the binary number 11111111 represent in an 8-bit system?
-1
255 (unsigned)
127
All of the above, depending on context.

Explanation

The value depends on whether it is treated as an unsigned integer or a two's complement signed integer. In the latter, it represents -1.

Comments (0)

Advertisement