#include<stdio.h>
int main()
{
printf("char 类型变量占用 %d 个字节\n", sizeof(char));
printf("unsigned char 类型变量占用 %d 个字节\n", sizeof(unsigned char));
printf("short 类型变量占用 %d 个字节\n", sizeof(short));
printf("unsigned int 类型变量占用 %d 个字节\n", sizeof(unsigned int));
printf("int 类型变量占用 %d 个字节\n", sizeof(int));
printf("long 类型变量占用 %d 个字节\n", sizeof(long));
printf("long long 类型变量占用 %d 个字节\n", sizeof(long long));
printf("float 类型变量占用 %d 个字节\n", sizeof(float));
printf("double 类型变量占用 %d 个字节\n", sizeof(double));
printf("long double 类型变量占用 %d 个字节\n", sizeof(long double));
return 0;
}