#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;
}
字母a在ASCLL码中的值是97,26个大小写字母在ASCLL码中都有值
‘a'在ASCII码表里面对应97
a的ASCLL码的值是97
char c = 'a':看上面如图所见'a’=97