w3r3w0lf said:
can anyone explain this to me?
long long a;
what is this "long long"?? something like 8 byte variable (two longs) or
what?
- this type has been introduced in the 1999 C standard
- not in the 1998 C++ standard, but expected to be part of the next one.
"long long" is an (at least) 64 bit integer,
just as "long" is at least 32 bits.
From the 99 C standard, 5.2.4.2.1:
minimum value for an object of type long long int
LLONG_MIN -9223372036854775807 // -(263 - 1)
- maximum value for an object of type long long int
LLONG_MAX +9223372036854775807 // 263 - 1
- maximum value for an object of type unsigned long long int
ULLONG_MAX 18446744073709551615 // 264 - 1
hth-Ivan