Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 932 Bytes

int16_min.md

File metadata and controls

46 lines (34 loc) · 932 Bytes

INT16_MIN

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

概要

int16_t の最小値を表す定数。

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

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

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

#include <iostream>
#include <cstdint>

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

出力

-32768

バージョン

言語

  • C++11

処理系