#include using namespace std; //A simple example of the sizeof function: main() { cout << "-------------------------------------------" << endl; cout << "Sizes (in bytes) of various variable types:" << endl; cout << "-------------------------------------------" << endl; cout << "char: " << sizeof(char) << endl; cout << "int: " << sizeof(int) << endl; cout << "float: " << sizeof(float) << endl; cout << "double: " << sizeof(double) << endl; cout << "unsigned int: " << sizeof(unsigned int) << endl; cout << "short int: " << sizeof(short int) << endl; cout << "long int: " << sizeof(long int) << endl; cout << "long long: " << sizeof(long long) << endl; cout << "bool: " << sizeof(bool) << endl; }