CKTIS / C
long long — a large signed integer type
long long stores large signed integers; its width is not required to be exactly 64 bits.
Version: C23; repository compiler flag, production runtime not attested
Syntax
long long name = 0LL;long long, long long int, and signed long long int name the same signed integer type. It has at least 64 bits, but not necessarily 8 bytes. It may have the same size as long.
LLONG_MIN and LLONG_MAX from <limits.h> provide its limits. unsigned long long is a distinct unsigned type. Signed arithmetic overflow causes undefined behavior.
The LL suffix gives the decimal constants used here type long long. For printf, use %lld, not %ld. The example prints an addition result without overflow.
Examples
#include <stdio.h>
int main(void)
{
long long total = 3000000000LL;
total += 7LL;
printf("%lld\n", total);
return 0;
}
Result
3000000007
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.