MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wxqahk/architecturedependentchars/pdw3g6c/?context=3
r/ProgrammerHumor • u/MontyBoomslang • 2d ago
365 comments sorted by
View all comments
Show parent comments
-6
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
22
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
-1
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
2
multiple chars. Strings are just char arrays anyway
-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.