CHAR_BIT
is something like
#define CHAR_BIT 8
As such, you are printing the size of an int
, which is 4 bytes for you.
I think you wanted
printf( "%d\n", CHAR_BIT );
solved Wondering why the size of my char is 4 bits?
CHAR_BIT
is something like
#define CHAR_BIT 8
As such, you are printing the size of an int
, which is 4 bytes for you.
I think you wanted
printf( "%d\n", CHAR_BIT );
solved Wondering why the size of my char is 4 bits?