sizeof()函数是计算某个数据或类型在计算机中占的长度int a=sizeof(int);int b=sizeof(double);int c=sizeof(float);int d=sizeof(char); a=4 b=8 c=4 d=1