#include<stdio.h>
int main(void){
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;}
确定不同整型数据类型在内存中占多大(字节),输出不同整型数据类型在内存中占多大(字节)。
最新推荐文章于 2023-04-02 19:44:27 发布