> - one byte has CHAR_BIT bits;
Can you link a reference to this? Seems backwards/weird.
Re:Computer Scientists’ Trivia
by AnimalMuppet on Thursday February 02, 2017 @12:04PM
(#13552107)
So per C99, a byte can have more than 8 bits? My mind boggles...
For 36-bit CPUs, the 9-bit byte was a natural choice (as was storing 6 characters of a more limited character set in a 36-bit word)
Re:Computer Scientists’ Trivia
by AnimalMuppet on Thursday February 02, 2017 @01:04PM
(#13552812)
Ah, yes, 36-bit. I had forgotten about that, despite my mother having worked on such systems.
- sizeof returns size in bytes;
- sizeof (char) == 1;
- one byte has CHAR_BIT bits;
- CHAR_BIT >= 8.