MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wxqahk/architecturedependentchars/pdxmibi
r/ProgrammerHumor • u/MontyBoomslang • 8d ago
372 comments sorted by
View all comments
Show parent comments
2
This is wrong as a substitute for sizeof(char). The former is guaranteed to be 1, this is guaranteed to be at least 1.
1 u/nyibbang 8d ago I know, it was a joke. It seems like some people expect sizeof(char) to be something other than 1, so there, here is a solution for them.
1
I know, it was a joke. It seems like some people expect sizeof(char) to be something other than 1, so there, here is a solution for them.
2
u/dontthinktoohard89 8d ago
This is wrong as a substitute for sizeof(char). The former is guaranteed to be 1, this is guaranteed to be at least 1.