慕田峪2597960
2019-08-06 09:43
问题内容如题。
是2-8好不好?
#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是有特殊定义的哦
因为字符a的ASCII码的十进制值就是97.
C语言入门
928124 学习 · 21543 问题
相似问题