#include<stdio.h>
#include<stdlib.h>
int main(int argc, char** argv)
{
printf("size of char is:%d\n",sizeof(char));
printf("size of short is:%d\n",sizeof(short));
printf("size of int is:%d\n",sizeof(int));
printf("size of short int is:%d\n",sizeof(short int));
printf("size of float is:%d\n",sizeof(fl
计算变量所占字节——sizeof
最新推荐文章于 2023-08-10 20:20:30 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)