4 ms·
A char is 1 byte by definition. But the type of a character literal (the 'x' syntax) is not a char, but an int instead. The C type system generally matters so
by jcranmer 4y ago
A char is 1 byte by definition. But the type of a character literal (the 'x' syntax) is not a char, but an int instead.
The C type system generally matters so little that the type of an expression has little relevance (sizeof is the most notable exception to that rule), which obscures this fact.