Answers for "how to use sizeof"

C++
4

sizeof

cout << "char: " << sizeof(char) << endl;
cout << "int: " << sizeof(int) << endl;
cout << "float: " << sizeof(float) << endl;
cout << "double: " << sizeof(double) << endl;
Posted by: Guest on May-27-2021

Browse Popular Code Answers by Language