I\'m looking for detailed information regarding the size of basic C++ types. I know that it depends on the architecture (16 bits, 32 bits, 64 bits) and the compiler.
unsigned char bits = sizeof(X) << 3;
where X is a char,int,long etc.. will give you size of X in bits.
X
char
int
long