Let's consider the following example:
long long int lli = 5000000000;
long int li;
int i;
li = lli;
i = li;
Can you predict the values of lli
, li
and i
? Or whether li
and i
have the same value?
Answer is - values depend on the number of bytes allocated for each type!
I.e. for some cases int
is equal to long int
, for others long int
is equal to long long int
, but in general long
er types just CAN be longer. Similar (in sense of memory size) for float
, double
and long double
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…