C Language Q & A #8 (cont.)
- A secondary issue with character data in C is whether the variables have the characteristics of representing signed or unsigned numbers. Signed numbers can have negative or positive values, such as -5, or 5. Unsigned numbers can have values of zero or positive numbers. Normally, the character variables in a C program have the signed characteristic, but you can override this using the unsigned reserved word with the variable declaration:
unsigned char count;
Now count can only represent zero or positive numbers.