I'm seeking for specific information on the sizes of basic C++ types.
I understand that it is determined by the architecture (16 bits, 32 bits, or 64 bits) and the compiler.
But are there any C++ standards?
On a 32-bit architecture, I'm using Visual Studio 2008.
This is what I get:
char : 1 byte
short : 2 bytes
int : 4 bytes
long : 4 bytes
float : 4 bytes
double: 8 bytes
I looked for solid information on the sizes of char, short, int, long, double, float (and other types I didn't think of) under different architectures and compilers, but had little luck.