//将c赋值给n
char c = 'a';
int n = c; 字符类型可以自动转换为整型 //将c赋值给n
float f = (float)c; //将c赋值给f
double d = (double)c; //将c赋值给d
printf("%d\n",n);
printf("%f\n",f);
printf("%lf\n",d);
return 0;