#include #include #include using namespace std; const int BITS_PER_BYTE{8}; int main( ){ int i{0}; int bytes{0}; int bits{0}; long powerResult{0}; int badPowerResult{0}; unsigned long long n{0}; short smallNum{0}; unsigned short smallPositivie{0}; i = INT_MAX; cout << "Int Max is " << i << " or " << INT_MAX << endl; cout << "int min is " << INT_MIN << endl; cout << endl; bytes = sizeof(i); bits = bytes * BITS_PER_BYTE; cout << "The size of an int is " << bytes << " bytes " << endl; cout << "That is " << bits << " bits " << endl; powerResult = pow(2, bits); badPowerResult = pow(2, bits); cout << "2^" << bits << " is " << powerResult << endl; cout << "2^" << bits << " is " << badPowerResult << endl; cout << "The biggest long is " << LONG_MAX << endl; cout << i << " + 1 = " << i+1 << endl; i = 012; cout << " i = " << i << endl; i = 0xabc; cout << " i = " << i << endl; return 0; }