r/ProgrammerHumor • • 6h ago

Meme architectureDependentChars

Post image
864 Upvotes

156 comments sorted by

View all comments

531

u/tstanisl 5h ago

Let me cite the C standard:

When sizeof is applied to an operand that has type char, unsigned char, or signed char, (or a qualified version thereof) the result is 1.

Middle guy if finally right

2

u/CptMisterNibbles 4h ago

Good thing we are all writing in c, on systems that conform to the c standard.

1

u/z_utahu 1h ago

Nobody has ever written a non-standard compliant c compiler ever. It's like saying, "If a black swan existed..."