请问没有给d赋值,为什么会输出3呢?
#include <stdio.h>
int main()
{
char c = 'a';
int n = c; //将c赋值给n
float f = c; //将c赋值给f
double d = //******注意看这里******
printf("%d\n",n);
printf("%f\n",f);
printf("%lf\n",d);
return 0;
}请问没有为什么给d赋值,输出结果却为3呢?
97
97.000000
3.000000