I don't know this type. Is that the biggest one from all? I think it is an integer type, right? Or is it a floating point thing? Bigger than double?
why "long long" ? is it as big as long * long?
openfrog
2010-01-24 15:12:50
@openfrog no - the C standard states that a long long must be at a minimum at least as big as a long but does not state anything other than that - theoretically a long long could be a 128 bit number or a 256 bit number - it is all implementation dependent
Simon
2010-01-24 15:27:51
`long long` must at least be 64 bits
Johannes Schaub - litb
2010-01-24 16:04:24
Is there any C compiler that actually has a `long long` type but with a size that is not 64 bits wide?
x4u
2010-01-24 16:32:41
What, now, or by the time someone reads the comment? ;-)
Steve Jessop
2010-01-24 18:08:35
+3
A:
A long long
is an integer data type, usually 4 or 8 bytes wide depending on the platform. More info wikipedia
James Morris
2010-01-24 15:13:43
+3
A:
According to C99 standard, long long
is an integer type which is at least 64-bit wide. There are two integer 64-bit types specified: long long int
and unsigned long long int
So, yes, this is the biggest integer type specified by C language standard (C99 version).
There is also long double type specified by C99. It's a double precision floating point numeric data type long for 80-bits on most popular x86-based platforms and implementations of C language.
mloskot
2010-01-24 15:30:32