发布网友 发布时间:2024-05-31 01:05
共2个回答
热心网友 时间:2024-05-31 02:01
#include<iostream>热心网友 时间:2024-05-31 02:06
#include "stdio.h"int main()
{
printf("char有%d字节\n",sizeof(char));
printf("short有%d字节\n",sizeof(short));
printf("int有%d字节\n",sizeof(int));
printf("long有%d字节\n",sizeof(long));
printf("long long有%d字节\n",sizeof(_int64));
printf("float有%d字节\n",sizeof(float));
printf("double有%d字节\n",sizeof(double));
printf("long double有%d字节\n",sizeof(long double));
return 0;
}