views:

215

answers:

5

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?

+8  A: 

Its an integer, at least as big as long.

anon
why "long long" ? is it as big as long * long?
openfrog
@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
`long long` must at least be 64 bits
Johannes Schaub - litb
Is there any C compiler that actually has a `long long` type but with a size that is not 64 bits wide?
x4u
What, now, or by the time someone reads the comment? ;-)
Steve Jessop
+2  A: 

It's a 64-bit integer on most 64-bit platforms

Source Wikipedia

Joe
+5  A: 

See this for an explanation and example.

Dave7896
+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
+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