The Scale of Types
The scale of type int is, and it is a little more than
. and the scale of long long type is , and it is a little less than
int i = ; // this is wrong!!!
long long j = ; // this is correct!
printf(“%d”,i);
printf(“%lld”,j);
int some platform or some compiler, long type is equal to int type. They are 32 bits. But long long type is 64 bits in linux.
use #define to declare a const, like this( if the number is too big):
1 |