#include #include #include using namespace std; const int BITS_PER_BYTE {8}; int main() { int i{0}; int bytesInInt {0}; int bitsInInt{0}; int intPower{0}; long longPower{0}; unsigned long long bigNumb{0}; i = INT_MAX; cout << "The smallest int is " << INT_MIN << endl; cout << "The largest int is " << i << endl; bytesInInt = sizeof(i); bitsInInt = bytesInInt * BITS_PER_BYTE; cout << endl; cout << "The size of an int is " << bytesInInt << " bytes" << endl; cout << "The size of an int is " << bitsInInt << " bits" << endl; intPower = pow(2, bitsInInt); longPower = pow(2, bitsInInt); cout << "(int) 2^" << bitsInInt << " = " << intPower << endl; cout << "(long) 2^" << bitsInInt << " = " << longPower << endl; cout << endl; cout << i << " + 1 = " << i + 1 << endl; return 0; }