// Source: "Software Design ...", John A Robinson, Newnes, 2004, page 61. // // Program to print out the sizes of the basic types // #include #include using namespace std; int main() { cout << "Basic type sizes on this implementation are as follows:\n"; cout << "char\t" << sizeof(char) << '\n'; cout << "int\t" << sizeof(int) << '\n'; cout << "float\t" << sizeof(float) << '\n'; cout << "double\t" << sizeof(double) << '\n'; return 0; }