C examples for limits.h:LONG_MAX
Macro
Maximum value for an object of type long int. 2147483647 (2^31-1) or greater*
#include <iostream> #include <limits.h> using namespace std; int main()/*from www .ja v a 2 s. c om*/ { cout << LONG_MAX; return 0; }