#include
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呢 99 99.000000 99.000000int n = c; 后面的赋值也别加单引号,之前字符加单引号是将ASCLL码的值赋予字符C