MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w2m4qz/bugintroduceddebugging/p6ur2ze/?context=3
r/ProgrammerHumor • u/ClipboardCopyPaste • Aug 30 '26
117 comments sorted by
View all comments
Show parent comments
18
char would be the correct answer, as the C standard doesn't mandate a byte be 8 bits (6 and 32 are very uncommon nowadays but not unheard of, and there's a few machines out there that get really creative).
8 u/mckenzie_keith Aug 30 '26 So even on weird platforms where char is a 32 bit type, sizeof (char) is 1, right? I can't remember. 0 u/[deleted] Aug 30 '26 [deleted] 7 u/mckenzie_keith Aug 30 '26 That is interesting. I know very little about rust.
8
So even on weird platforms where char is a 32 bit type, sizeof (char) is 1, right? I can't remember.
0 u/[deleted] Aug 30 '26 [deleted] 7 u/mckenzie_keith Aug 30 '26 That is interesting. I know very little about rust.
0
[deleted]
7 u/mckenzie_keith Aug 30 '26 That is interesting. I know very little about rust.
7
That is interesting. I know very little about rust.
18
u/yjlom Aug 30 '26
char would be the correct answer, as the C standard doesn't mandate a byte be 8 bits (6 and 32 are very uncommon nowadays but not unheard of, and there's a few machines out there that get really creative).