Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 1.02 KB

int16_max.md

File metadata and controls

47 lines (35 loc) · 1.02 KB

INT16_MAX

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

概要

int16_t の最大値を表す定数。

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

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

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

#include <iostream>
#include <cstdint>

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

出力

32767

バージョン

言語

  • C++11

処理系