cout << "char: " << sizeof(char) << endl;
cout << "int: " << sizeof(int) << endl;
cout << "float: " << sizeof(float) << endl;
cout << "double: " << sizeof(double) << endl;
cout << "The sizeof(char) is " << sizeof(char) << " byte/s" << endl;
cout << "The sizeof(short) is " << sizeof(short) << " byte/s" << endl;
cout << "The sizeof(int) is " << sizeof(int) << " byte/s" << endl;
cout << "The sizeof(long) is " << sizeof(long) << " byte/s" << endl;
cout << "The sizeof(long long) is " << sizeof(long long) << " byte/s" << endl;
cout << "The sizeof(float) is " << sizeof(float) << " byte/s" << endl;
cout << "The sizeof(double) is " << sizeof(double) << " byte/s" << endl;
cout << "The sizeof(long double) is " << sizeof(long double) << " byte/s" << endl;
cout << "The sizeof(bool) is " << sizeof(bool) << " byte/s" << endl;
Code Example |
---|
Cpp :: max pooling in c++ |
Cpp :: glm has no member value_ptr |
Cpp :: heredar constructor c++ |
Cpp :: draw line sfml |
Cpp :: vector<intv[] |
Cpp :: hierarchical inheritance in c++ employee |
Cpp :: how to traverse through vector pair |
Cpp :: cmd color text c++ |
Cpp :: how to format big numbers with commas in c++ |
Cpp :: even and odd in c++ |
Cpp :: age in days in c++ |
Cpp :: variadic template in c++ |
Cpp :: declare a tab c++ |
Cpp :: C++ detaching threads |
Cpp :: maximum subarray leetcode c++ |
Cpp :: Start mongodb community server |
Cpp :: string c++ |
Cpp :: memset in cpp |
Cpp :: std::string substr |
Cpp :: hashset in cpp |
Cpp :: flutter text direction auto |
Cpp :: convert uppercase to lowercase |
Cpp :: map of maps c++ |
Cpp :: online converter c++ to c |
Cpp :: c++ string replace |
Cpp :: c++ file handiling |
Cpp :: c++ break statement |
Cpp :: adding two dates using necessary member function in c++ |
Cpp :: how to open file without override c++ |
Cpp :: argument to number C++ |