4 ms·
Isn't defining byte = char a bit wrong? char may be signed or unsigned, and may be more or less than 1 byte, right? So why that?
by lionkor 3y ago
Isn't defining byte = char a bit wrong? char may be signed or unsigned, and may be more or less than 1 byte, right? So why that?
- tmtvl 3y ago> char may be signed or unsigned, Correct, the standard does not specify whether char is signed or unsigned, so it's implementation-specific. > and may be more or less than 1 byte, right? Wrong, char is specified as a single byte character, so the following will always be true: sizeof(char) == 1;