写一个程序,输出在你使用的C++系统中int类型的数据占几个字节,double类型的 数据占几个字节,short int占几个字节,float类型占几个字节。
#include <iostream>using namespace std;int main() { cout << "int:" << sizeof(int) << endl; cout << "double:" << sizeof(double) << endl; cout << "float:" << sizeof(float) << endl; cout <&
原创
2022-02-28 17:24:13 ·
918 阅读 ·
0 评论