Range of signed char

That is because of the way two’s complement encoding works: 0 is treated as a “positive” number (signed bit off), so, therefore, the number of available positive values is reduced by one.

In ones’ complement encoding (which is not very common nowadays, but in the olden days, it was), there were separate values for +0 and -0, and so the range for an 8-bit quantity is -127 to +127.

Leave a Comment