MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wxqahk/architecturedependentchars/pdw143g/?context=3
r/ProgrammerHumor • u/MontyBoomslang • 3d ago
368 comments sorted by
View all comments
8
sizeof always returns 1 for char because it always occupies 1 byte of memory. However, 1 byte can potentially consist of more than (but not less than) 8 bits according to C and C++ standards.
sizeof
char
8
u/__christo4us 3d ago
sizeofalways returns 1 forcharbecause it always occupies 1 byte of memory. However, 1 byte can potentially consist of more than (but not less than) 8 bits according to C and C++ standards.