- C language
- C type
- here

## uint64_t --Unsigned 64-bit integer type

"Uint64_t" is an unsigned 64-bit integer type. It can be used by including the " stdint.h" header. This is the type introduced in C99.

# Unsigned 64-bit integer type uint64_t

The maximum value of an integer that can be represented by an unsigned 64-bit integer type is "4294967295", and the minimum value is "0".

The maximum value is defined by the macro " UINT64_MAX --constant representing the maximum value of uint64_t".

### uint64_t sample code

This is a sample code using uint64_t. "%Llu" in the format specifier of the printf function to indicate that it exceeds the value of a signed 64-bit integer and is an unsigned 64-bit integer. , Integer literals with "ULL" suffix.

#include <stdio.h> #include <stdint.h> int main (void) { uint64_t num = 18446744073709551615ULL; printf("%llu\n", num); }

Output result.

18446744073709551615