Hacker News new | ask | show | jobs
by gens 1956 days ago
EDIT: I was wrong, a char is always sizeof 1, See https://news.ycombinator.com/item?id=26131228

// old reply:

I already replied to nanis above, so i+l just c/p it here.

CHAR_BIT is a minimum of 1 byte (8 bits), but is not guaranteed to be 1.

http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf (Annex E)