LONG_MAX - C limits.h

C examples for limits.h:LONG_MAX

Type

Macro

Description

Maximum value for an object of type long int. 2147483647 (2^31-1) or greater*

Demo Code

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

using namespace std;
int main()/*from www .ja  v  a  2 s.  c om*/
{
    cout << LONG_MAX;
    return 0;
}

Related Tutorials