#include<stdio.h>
main()
{
char a = 127;
char i=0;
char ai=0;
ai= a+i;
printf("size short= %d
",sizeof(short));
printf("size short int= %d
",sizeof(short int));
printf("size char= %d
",sizeof(char));
printf("size int = %d
",sizeof(int));
printf("size a+i= %d
",sizeof(a+i));
printf("size ai = %d
",sizeof(ai));
getchar() ;
}
运行结果: