GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • cpprefjp - C++日本語リファレンス
  • GitHub Project

This view

  • Original page
  • New address

GeezerVison is showing cpprefjp.github.io — INT_MIN - cpprefjp C++日本語リファレンス

  1. リファレンス
  2. climits
  3. INT_MIN

最終更新日時: 2026年09月11日 13時06分31秒 (JST)
Akira Takahashi が更新

履歴 編集

macro
<climits>

INT_MIN

#define INT_MIN implementation-defined

概要

int 型が表現できる値の最小値。

std::numeric_limits<int>::min() と等しいが、INT_MIN は #if などのプリプロセッサディレクティブで使用できる。

具体的な値は実装依存であるが、-32767(-(215 - 1))以下であることが規格で定められている。このマクロによって定義される値の型は int である。

例

#include <climits>
#include <iostream>

int main()
{
  std::cout << INT_MIN << '\n';
}

出力例

-2147483648

バージョン

言語

  • C++98
  • C++11

処理系

  • Clang: 3.0 ✅, 3.1 ✅, 3.2 ✅, 3.3 ✅, 3.4 ✅
  • GCC: 4.3.6 ✅, 4.4.7 ✅, 4.5.3 ✅, 4.5.4 ✅, 4.6.4 ✅, 4.7.3 ✅, 4.8.1 ✅, 4.8.2 ✅, 4.9.0 ✅
  • Visual C++: 2003 ✅, 2005 ✅, 2008 ✅, 2010 ✅
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.