May 2003
Intermediate to advanced
808 pages
32h 24m
English
char type — Character type specifier
simple-type-specifier := charThe char type represents a
character, sometimes called a narrow character. The char type is distinct from signed char and unsigned char, but its representation must match one
or the other. (Which one depends on the implementation.) A char can be promoted to an integer; the
value depends on whether the representation is signed or
unsigned.
By definition, sizeof(char)
is 1, so a char is often used as the basic unit of
memory allocation. Raw memory is often allocated as arrays of char or unsigned char.