#include <iostream>
using namespace std;
// this file allows us to use the constants: 
// INT_MAX, SHRT_MAX...
#include <climits>

int main() {
  int my_int;
  short my_short;
  long my_long;
  //char my_char;

  // printing out the amount of memory each var takes up.
  cout << "Size in bytes.\n";
  cout << "int is " << sizeof my_int << " bytes.\n";
  cout << "short is " << sizeof my_short << " bytes.\n";
  cout << "long is " << sizeof my_long << " bytes.\n";
  //cout << "char is " << sizeof my_char << " bytes.\n";

  cout << "\n";

  // printing out the max values each type can hold.
  cout << "Max values\n";
  cout << "int:" << INT_MAX << "\n";
  cout << "short:" << SHRT_MAX << "\n";
  cout << "long:" << LONG_MAX << "\n";
  //cout << "char:" << CHAR_MAX << "\n";

}

