Hi, I've read in the Standard this:
"The sizeof operator yields the number of bytes in the object representation of its operand...
sizeof(char), sizeof(signed char), sizeof(unsigned char) are 1;..."
I remebered a post a while ago where I read that because of sizeof(char) is 1 that doesn't mena that it is 8 bits and that number of bits in the byte could be variable. Does it mean that number of bits in byte can be 6 for example?
On my machine sizeof(double) and sizeof(long double) are equal (8) but I suppose that there are different number of bits. Am I right?
Can we talk about number of bits which specific type occupies in memory, for example int is 32 bit on most machines or maybe it is corectly to say int is 4 bytes on most machines?