// numeric_limits example
#include <iostream> // std::cout
#include <limits> // std::numeric_limits
int main () {
std::cout << "Minimum value for long int: " << std::numeric_limits<longint>::min() << '\n';
std::cout << "Maximum value for long int: " << std::numeric_limits<longint>::max() << '\n';
return 0;
}
Example output:
Minimum value for long int: -9223372036854775808
Maximum value for long int: 9223372036854775807