This commit is contained in:
flykhan 2023-06-16 16:32:52 +08:00
parent c9353fa3fe
commit 896ab0ca76
1 changed files with 25 additions and 0 deletions

25
day5/d5.cpp Normal file
View File

@ -0,0 +1,25 @@
// sizeof测试
#include <iostream>
using namespace std;
int main()
{
char c = 'a';
cout << c << endl;
cout << sizeof(c) << endl;
short x = '1';
cout << x << endl;
cout << sizeof(x) << endl;
int z = 1;
cout << z << endl;
cout << sizeof(z) << endl;
bool y = true;
cout << y << endl;
cout << sizeof(y) << endl;
return 0;
}