Name | Description | Notes | Source | Availability | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ATOMIC_ |
Lock-free property of type atomic_ |
? | M | <stdatomic.h> |
C11 | ||||||
atomic_ |
Atomic integer type | ? | T | <stdatomic.h> |
C11 | ||||||
atomic_ |
Atomic integer type | ? | T | <stdatomic.h> |
C11 | ||||||
LLONG_ |
Maximum value of long long |
L | M | <limits.h> |
C99 | C11 | |||||
LLONG_ |
Minimum value of long long |
L | M | <limits.h> |
C99 | C11 | |||||
long long |
Signed integer type | L | T | Native | C99 | C11 | |||||
ULLONG_ |
Maximum value of unsigned long long |
L | M | <limits.h> |
C99 | C11 | |||||
unsigned long long |
Unsigned integer type | L | T | Native | C99 | C11 |
long long
is a signed integer type
with the range LLONG_
to LLONG_
,
which is at least ±9223372036854775807. It can also be called
signed long long
or long long signed
. Use %lld or
%lli with printf
to print an long long
. Use %lld or
%lli with scanf
to scan an long long
. Constants of type
long long
are suffixed with
ll or LL.
unsigned long long
is an unsigned integer
type with the range 0
to
ULLONG_
, which is at least
+18446744073709551615. It can also be called long long unsigned
. Use %llu,
%llo, %llx or %llX
with printf
to print an unsigned long long
. Use %llu,
%llo or %llx with scanf
to scan an unsigned long long
. Constants of type
unsigned long long
are suffixed with
ull
, Ull
,
llu
, llU
,
uLL
, ULL
,
LLu
or LLU
.
sizeof(long long)
and sizeof(unsigned long long)
are the same. long long
and unsigned long long
are intended to be wider
than other standard native integer types like long
.
atomic_
is an alias for _Atomic unsigned long long
. atomic_
is an alias for _Atomic long long
. These types are lock-free always if
ATOMIC_
is
2
, sometimes if 1
, and never if 0
.