1、用sizeof求出所有基本数据类型的长度
#include<iostream>#include<cstdlib>usingnamespace std;intmain(){
int a, b, c, d, e, f, g, h,i,j,k;
a=sizeof(char);
b =sizeof(short);
c =sizeof(int);
d =sizeof(long</
c++用sizeof求出所有基本数据类型的长度1、用sizeof求出所有基本数据类型的长度#include <iostream>#include <cstdlib>using namespace std; int main(){ int a, b, c, d, e, f, g, h,i,j,k; a=sizeof(char); b = sizeof(short); c = sizeof(int); d = sizeof(long); e= si