C examples for limits.h:SHRT_MAX
Macro
Maximum value for an object of type short int. 32767 (2^15-1) or greater*
#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; }