3 ms·
> The value of "sizeof (char)" in C is 1. For those who might not be aware, this does not mean that a char is always 8 bits.
by Sean1708 10y ago
> The value of "sizeof (char)" in C is 1.
For those who might not be aware, this does not mean that a char is always 8 bits.
- presto8 10y agoAccording to C99 spec, the maximum number of bits for the smallest object that is not a bit-field is 8 bits. See "CHAR_BIT" in the C99 spec. [1] http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf
- daurnimator 10y agoSmallest. It might be larger (and infact it is in a lot of DSP toolchains)