求助:代码输出结果和预期不对。求指点(vs2010编译c语言)
# include "stdio.h"void main()
{
float a,b;
char c='a';
int i=97;
a=31.1111;b=28.3333;
printf("%f,%7.4f\n",a+b,a-b);
printf("%c,%d\n",c,c);
printf("%c,%d\n",i,i);
printf("%s,%%\n","China");
}
vs2010输出结果:59.444399, 2.7778
a,97
a,97
China,%
请按任意键继续. . .
但是视频里用的TurboC编译结果是
求解!!!QQQ!!!