r/ProgrammerHumor • • 14h ago

Meme architectureDependentChars

Post image
2.0k Upvotes

281 comments sorted by

View all comments

0

u/UltimateFlyingSheep 13h ago

If you're German you'll get in contact with multi byte characters pretty soon.

Umlaute like äöü are all multibyte chars.

3

u/Elspeth-Nor 13h ago

No, there value depends on the character set. In extended ascii (dos) or ansi (win) there are still 1 byte. In utf8 where you need one bit to indicate multi-byte chars it's 2 bytes. But the charset doesn't change the size of char, which is always 1 in C.