Character data types lists the name, size, and range of the character data types.
| This type | has this size | and holds this range of values |
|---|---|---|
| char | 8 bits | either -128 to 127 or 0 to 255 |
| unsigned char | 8 bits | 0 to 255 |
| signed char | 8 bits | -128 to 127 |
Character data types lists the name, size, and range of the C++ wchar_t data types.
| This type | has this size | and holds this range of values |
|---|---|---|
| wchar_t | 16 bits | either -32768 to 32767 or 0 to 65535 |
| unsigned wchar_t | 16 bits | 0 to 65535 |
| signed wchar_t | 16 bits | -32768 to 32767 |
The pragma unsigned_char controls whether or not the compiler treats the wchar_t and char types as signed or unsigned.