Char
Jump to navigation
Jump to search
char
is the amount of memory needed to store one ASCII character. On architectures that Source supports, this is one byte or eight bits.
char MyChar = 'T'; // single quote marks

Arrays of char
or wchar_t
are known as strings, and are used to store text. char*
means a pointer to a char, which is almost always the start of a string.
In GoldSrc and
Source, unsigned chars (0-255) are typedefed as byte.