Size-invariant variable types
int
, short
, char
and long
long
are size-invariant variable types.
They always have the same size whether in 32-bit mode or 64-bit mode irrespective of the class of the declared variable.
Type | Size |
---|---|
long long | 8 |
int | 4 |
short | 2 |
char | 1 |