How check size of integer datatypes in C++?

How much bytes have integer datatype n C++? For diffrent platform it may be differ number.

To do it You may use header file: climits applies constant variables. It is example shows size of bytes of these datatype. It use constants and  sizeof  function.

#include <iostream>
#include <climits> 
using namespace std;

int main()
{
short short_max = SHRT_MAX;
int int_max = INT_MAX;
long long_max = LONG_MAX;
long long llong_max = LLONG_MAX;

    cout << "Integer variables on Windows 7 64-bit:\n";
cout << "- short from " << SHRT_MIN <<  " to " << SHRT_MAX
     << ", bajtow: " << sizeof short_max << endl;
cout << "- int from " << INT_MIN <<  " to " << INT_MAX
     << ", bajtow: " << sizeof int_max << endl;
cout << "- long from " << LONG_MIN <<  " to " << LONG_MAX
     << ", bajtow: " << sizeof long_max << endl;
cout << "- long long from " << LLONG_MIN <<  " to " << LLONG_MAX
     << ", bytes" << sizeof llong_max << endl<< endl;
    cout << "Unsigned integer variables on Windows 7 64-bit:\n";
cout << "- unsigned short max " << USHRT_MAX << endl;
cout << "- unsigned int max " << UINT_MAX << endl;
cout << "- unsigned long max " << ULONG_MAX << endl;
cout << "- unsigned long long max " << ULLONG_MAX << endl<< endl;
    cout << "bytes of CHAR: " << CHAR_BIT;
  return 0;
}

And it is result of running this programm on Windows 7 64-bit:

qq11