12345678910111213141516171819202122232425
#include <cfloat> #include <iostream> using namespace std; int main() { charsymbol = 'r' ; charsymbol = 3 ; cout<< "Demonstration of variable types, storage size and min/max values." << endl; cout<< "Name Type Memory in bytes Value Range of values" << endl; cout<< "rate short " << sizeof(SHRT_MIN) << " to " << sizeof(SHRT_MAX) << endl; cout<< "count integer " << sizeof(INT_MIN) << " to " << sizeof(INT_MAX) << endl; cout<< "Counter long integer " << sizeof(LONG_MIN) << " to " << sizeof(LONG_MIN) << endl; cout<< "totalint unsigned integer 0 to " << sizeof(UINT_MAX) << endl; cout<< "Distance floating point " << sizeof(FLT_MIN) << " to " << sizeof(FLT_MAX) << endl; cout<< "accuracy floating point double " << sizeof(DBL_MIN) << " to " << sizeof(DBL_MAX) << endl; cout<< "temp floating point long double " << sizeof(LDBL_MIN) << " to " << sizeof(LDBL_MAX) << endl; cout<< charsymbol << sizeof(CHAR_MIN) << " to " << sizeof(CHAR_MAX) << endl; cout<< charsymbol << sizeof(CHAR_MIN) << " to " << sizeof(CHAR_MAX) << endl; cout<< "Flag boolean 1 to 2" << endl; return 0; }
cout << symbol
cout << charsymbol
cout char symbol
char charsymbol = 'r';
cout << char charsymbol