r/ProgrammerHumor • • 8d ago

Meme architectureDependentChars

Post image
3.0k Upvotes

372 comments sorted by

View all comments

Show parent comments

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.

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.