Using numeric_limits Template Class to Calculate Type Ranges
#include <iostream> #include <limits> using namespace std; int main(){ numeric_limits<int> _i; cout<<"Integer Range: "<<_i.min()<<" "<<_i.max()<<endl; return 0; }