SHRT_MAX - C limits.h

C examples for limits.h:SHRT_MAX

Type

Macro

Description

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

Demo Code

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

using namespace std;
int main()//from  w w  w  .j  av  a 2s .  co  m
{
    cout << SHRT_MAX;
    return 0;
}

Related Tutorials