Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 969 Bytes

uint64_max.md

File metadata and controls

46 lines (34 loc) · 969 Bytes

UINT64_MAX

  • cstdint[meta header]
  • macro[meta id-type]
  • cpp11[meta cpp]
# define UINT64_MAX implementation-defined

概要

uint64_t の最大値を表す定数。

ビット数64をNとして、このマクロの値は2N - 1である18446744073709551615となる。

その値の型は、uint64_tを整数昇格したものとなる。

なお、このマクロは uint64_t が定義されていない場合には定義されない。

#include <iostream>
#include <cstdint>

int main()
{
  std::cout << UINT64_MAX << std::endl;
}
  • UINT64_MAX[color ff0000]

出力

18446744073709551615

バージョン

言語

  • C++11

処理系