# include
# include
using namespace std;

int main( )
{
//	determines the size of several variable types on your computer

	cout << "The size of int       = " << sizeof(int)    << " bytes" << endl;
	cout << "The size of short int = " << sizeof(short)  << " bytes" << endl;
	cout << "The size of long int  = " << sizeof(long)   << " bytes" << endl;
	cout << "The size of char      = " << sizeof(char)   << " bytes" << endl;
	cout << "The size of float     = " << sizeof(float)  << " bytes" << endl;
	cout << "The size of double    = " << sizeof(double) << " bytes" << endl;
	cout << "The size of bool      = " << sizeof(bool)   << " bytes" << endl;

	return 0;
}

    Source: geocities.com/vuumanj/Cpp

               ( geocities.com/vuumanj)