logoalt Hacker News

jibal • today at 10:34 AM • 1 reply • view on HN

Per the C standard `sizeof(char)` is always 1, regardless of how many bits it has.


Replies

ddlsmurf • today at 10:51 AM

because it's the unit of addressable memory that C is concerned by with sizeof, otherwise its values still depend on CHAR_BIT