怎么输出结果是99?哪里错了,各位大神帮我斧正
#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.000000#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.0000002016-09-02
举报