C++ : size of int, long, etc...
- by Jérôme
I'm looking for detailed informations regarding the size of basic C++ types.
I know that it depends on the architecture (16 bits, 32 bits, 64 bits) and the compiler.
But are there any standards ?
I'm using Visual Studio 2008 on a 32 bit achitecture. Here is what I get :
char : 1 byte
short : 2 bytes
int : 4 bytes
long : 4 bytes
float :…