| Name | Description | Notes | Source | Availability | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
atomic_ |
Atomic integer type | ? | T | <stdatomic.h> |
C11 | ||||||
atomic_ |
Atomic integer type | ? | T | <stdatomic.h> |
C11 | ||||||
INT64_C() |
Create constant of type
int_ |
L | M | (·) | <stdint.h> |
C99 | C11 | ||||
INT_ |
Maximum value of
int_ |
L | M | <stdint.h> |
C99 | C11 | |||||
INT_ |
Minimum value of
int_ |
L | M | <stdint.h> |
C99 | C11 | |||||
int_ |
Smallest signed integer type with at least 64 bits | L | T | <stdint.h> |
C99 | C11 | |||||
PRIdLEAST64 |
Decimal output conversion specifier for
int_ |
M | <inttypes.h> |
C99 | C11 | ||||||
PRIiLEAST64 |
Decimal output conversion specifier for
int_ |
M | <inttypes.h> |
C99 | C11 | ||||||
PRIoLEAST64 |
Octal output conversion specifier for
uint_ |
M | <inttypes.h> |
C99 | C11 | ||||||
PRIuLEAST64 |
Decimal output conversion specifier for
uint_ |
M | <inttypes.h> |
C99 | C11 | ||||||
PRIXLEAST64 |
Hexdecimal output conversion specifier for
uint_ |
M | <inttypes.h> |
C99 | C11 | ||||||
PRIxLEAST64 |
Hexdecimal output conversion specifier for
uint_ |
M | <inttypes.h> |
C99 | C11 | ||||||
SCNdLEAST64 |
Decimal input conversion specifier for
int_ |
M | <inttypes.h> |
C99 | C11 | ||||||
SCNiLEAST64 |
General input conversion specifier for
int_ |
M | <inttypes.h> |
C99 | C11 | ||||||
SCNoLEAST64 |
Octal input conversion specifier for
uint_ |
M | <inttypes.h> |
C99 | C11 | ||||||
SCNuLEAST64 |
Decimal input conversion specifier for
uint_ |
M | <inttypes.h> |
C99 | C11 | ||||||
SCNxLEAST64 |
Hexdecimal input conversion specifier for
uint_ |
M | <inttypes.h> |
C99 | C11 | ||||||
UINT64_C() |
Create constant of type
uint_ |
L | M | (·) | <stdint.h> |
C99 | C11 | ||||
UINT_ |
Maximum value of
uint_ |
L | M | <stdint.h> |
C99 | C11 | |||||
uint_ |
Smallest unsigned integer type with at least 64 bits | L | T | <stdint.h> |
C99 | C11 | |||||
uint_ and
int_ are the smallest integer types of at least 64
bits.
uint_ is unsigned, and has the
range zero to
UINT_, which is at least
[0, +18446744073709551615].
int_ is signed, and has the range
INT_ to
INT_, which is at least
[−9223372036854775807, +9223372036854775807].
The following macros can be used in the fmt argument of printf to print arguments of types
uint_ and
int_:
PRIuLEAST64PRIoLEAST64PRIxLEAST64PRIXLEAST64PRIdLEAST64PRIiLEAST64
The following macros can be used in the fmt argument of scanf to scan arguments of types
uint_ and
int_:
SCNuLEAST64SCNoLEAST64SCNxLEAST64SCNdLEAST64SCNiLEAST64
atomic_ is an alias for
_Atomic
uint_.
atomic_ is an alias for
_Atomic
int_.
Related types:
uint64_tint64_tuint_least64_t int_least64_t uint_fast64_t int_fast64_t
| Property |
uint_ |
int_ |
|
|---|---|---|---|
| Minimum width (bits) | 64 | ||
| Lowest value | 0 | ≤−9223372036854775807 | |
| Highest value | ≥+18446744073709551615 | ≥+9223372036854775807 | |
| Constant |
UINT64_C(untyped-integer-constant) |
INT64_C(untyped-integer-constant) |
|
printf |
base 10 | "%"
PRIuLEAST64 |
"%"
PRIdLEAST64 or "%"
PRIiLEAST64 |
| base 8 | "%"
PRIoLEAST64 |
||
| upper-case base 16 | "%"
PRIXLEAST64 |
||
| lower-case base 16 | "%"
PRIxLEAST64 |
||
scanf |
base 10 | "%"
SCNuLEAST64 |
"%"
SCNdLEAST64 |
| base 8 | "%"
SCNoLEAST64 |
||
| base 16 | "%"
SCNxLEAST64 |
||
| base 16, 8 or 10 by prefix | "%"
SCNiLEAST64 |
||