0
点赞
收藏
分享

微信扫一扫

测试数据类型在32位系统下字节

松鼠树屋 2022-09-09 阅读 43


#include <iostream>
using namespace std;
int main()
{
cout << sizeof(char) << endl;
cout << sizeof(short) << endl;
cout << sizeof(unsigned) << endl;
cout << sizeof(int) << endl;
cout << sizeof(unsigned int) << endl;
cout << sizeof(long) << endl;
cout << sizeof(unsigned long) << endl;
cout << sizeof(float) << endl;
cout << sizeof(double) << endl;
cout << sizeof(void *) << endl;
}

测试数据类型在32位系统下字节_ios



举报

相关推荐

0 条评论