cppforever.com
Home
Data types
Fundamental types
Integral types
char
Go Up
Character sets and C++
When to use char for numbers
How cin/cout treat char vs int
Character literals are char (in C++)
cout.put() — output exactly one character
You can do integer arithmetic on char
Escape sequences
Universal Character Names (UCNs)
char is not guaranteed to be signed or unsigned
char
represents a character (letters, digits, punctuation) or a small number
can be signed or unsigned (based on the implementation)
can be 8-bit, 16-bit, or 32-bit (based on the implementation)
on most systems it fits in 1 byte (8 bits)