题解 | 有容乃大
有容乃大
https://www.nowcoder.com/practice/4712159bbc15417086d40d6c6ff94fee
#include <stdio.h>
int main()
{
printf("The size of short is %d bytes.\n",sizeof(short));
printf("The size of int is %d bytes.\n",sizeof(int));
printf("The size of long is %d bytes.\n",sizeof(long));
printf("The size of long long is %d bytes.\n",sizeof(long long));
return 0;//sizeof是一个在编译时计算一个类型或变量所占用内存的字节数的单目运算符,注意不是函数
}
查看12道真题和解析