INT_MAX - C limits.h

C examples for limits.h:INT_MAX

Type

Macro

Description

Maximum value for an object of type int. 32767 (2^15-1) or greater*

Demo Code

#include <iostream>
#include <limits.h>

using namespace std;
int main()// ww  w .  jav a 2 s.  c o m
{
    cout << INT_MAX;
    return 0;
}

Related Tutorials