On this page
  1. uint64_t
  2. Include
  3. Signature & Overview
  4. Notes & Pitfalls
  5. Example

uint64_t

Prev: uint32_t | Up: stdint.h | Next: uintptr_t
Rel: stdint.h, stdint, stdbool & limits Guide
Ref: cppreference — uint64_t
Tags: #public #prog #c #stdlib #stdint #tier/core


Include

#include <stdint.h>

Signature & Overview

typedef /* unsigned 64-bit */ uint64_t;

Exact 64-bit unsigned integer for hashes (FNV-1a), bitsets, and monotonic counters.

Notes & Pitfalls

Example

#include <assert.h>
#include <stdint.h>

int main(void) {
    uint64_t bytes = 1ULL << 32;
    assert(sizeof(bytes) == 8 && bytes > 0);
}

Linked from

Related notes