int short float double
#include<stdio.h>
int main(void) {
short e = 32767; //段整形也可写为 short int
printf("short类型的结果为:%d\n", e);
int f = e;
printf("int类型的结果为:%d\n", f);
int g = 2000025;
printf("int类型的结果为:%d\n", g);
short h = (short)g;//注意数据范围
printf("short类型的结果为:%d\n", h);
double j = 34.14;
int t = (double)j;//双精度浮点数据转整形
printf("int类型的结果为:%d", t);
return 0;
}