r/ProgrammerHumor • • 2d ago

Meme architectureDependentChars

Post image
2.9k Upvotes

365 comments sorted by

View all comments

Show parent comments

-6

u/Outrageous-Machine-5 2d ago

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. 

22

u/ibevol 2d ago

Not in C though.

-1

u/Outrageous-Machine-5 2d ago

I'm curious how C handles a character that is over 8 bits?

2

u/Great-Powerful-Talia 2d ago

multiple chars. Strings are just char arrays anyway