Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by jibal

13 hours ago

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

1 comment

jibal

Reply

ddlsmurf  13 hours ago

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

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities