#include<iostream>
using namespace std;
int main() {
cout << "The size of bool is: " << sizeof(bool) << endl;
cout << "The size of char is: " << sizeof(char) << endl;
cout << "The size of int is: " << sizeof(int) << endl;
cout << "The size of long is: " << sizeof(long) << endl;
cout << "The size of float is: " << sizeof(float) << endl;
cout << "The size of double is: " << sizeof(double) << endl;
return 0;
}
C++学习代码--sizeof
最新推荐文章于 2022-08-26 03:09:37 发布