Quote:Original post by Washu
The only one there that is absolutely true is the char.
The rest are compiler dependant, although the standard does state that a float will be an IEEE single, so that should be 4 bytes, but it depends on the definition of a byte on the particular system.
We are speaking of a 32 bit system here. The things I am sure I know is this:
1. int is garuanteed to be the default word size on that platform, here 4 bytes.
2. sizeof short <= sizeof int <= sizeof long <= sizeof long long.
3. float IS 4 bytes.
Quote:And thats one C++ byte, which doesn't mean 8 bits.
WTF? Perhaps I am ignorant, but tell me one example where a byte isn't exactly 8 bits??
Thermo