#include #include using namespace std; int main(int argc, char *argv[]) { cout << setw(12) << left << "char" << setw(2) << right << sizeof(char) << endl; cout << setw(12) << left << "short" << setw(2) << right << sizeof(short) << endl; cout << setw(12) << left << "int" << setw(2) << right << sizeof(int) << endl; cout << setw(12) << left << "long" << setw(2) << right << sizeof(long) << endl; cout << setw(12) << left << "long long" << setw(2) << right << sizeof(long long) << endl; cout << setw(12) << left << "float" << setw(2) << right << sizeof(float) << endl; cout << setw(12) << left << "double" << setw(2) << right << sizeof(double) << endl; cout << setw(12) << left << "long double" << setw(2) << right << sizeof(long double) << endl; cout << setw(12) << left << "pointer" << setw(2) << right << sizeof(void *) << endl; return EXIT_SUCCESS; }