自动类型转换
#include <stdio.h>
int main()
{
char c = 'a';
int n = C; //将c赋值给n
float f = C ; //将c赋值给f
double d =C; //将c赋值给d
printf("%d\n",n);
printf("%f\n",f);
printf("%lf\n",d);
return 0;
}
请问,这样能输出
97
97.000000
97.000000
吗?