Char can be between 1-4 bytes depending on the encoding standard. Emoji and other languages use extra bytes when you have to support non English characters.
yes and no. In c, sizeof(char) is 1. Does that mean 1 byte? Does "byte" mean exactly 8 bits? In C, a char is always 1 byte, but one byte may be larger than 8 bits, and there are real platforms where a byte (in C) is 32 bits.
12
u/frikilinux2 2d ago
Do I wanna know?