#include<stdio.h>
int main()
{
printf("%d\n",sizeof(int));
printf("%d\n",sizeof(double));
printf("%d\n",sizeof(float));
printf("%d\n",sizeof(char));
return 0;
}
计算各种数据类型所占的储存空间的大小
最新推荐文章于 2023-05-11 21:26:21 发布
#include<stdio.h>
int main()
{
printf("%d\n",sizeof(int));
printf("%d\n",sizeof(double));
printf("%d\n",sizeof(float));
printf("%d\n",sizeof(char));
return 0;
}