#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;
}小写‘c'在计算机里的ASCII码值是97,意思是’c‘其实是以值 97 储存在计算机中的,相应的每一个字符都有一个唯一对应的ASCII码,可以参考ASCII表看看