首页上一页 1 下一页尾页 1 条记录 1/1页
请教
发表在C语言图书答疑
2010-12-08
是否精华
是
否
版块置顶:
是
否
我修改了《c语言从入门到精通》第95页实例5..4的程序,为什么运算的结果不一样?
修改后的程序为:
#include<stdio.h>
int main()
{
int a=10,b='A',c=12.34;
printf(" the a is: %d\n the b is: %c\n the c is :%f\n the string is :%s\n",a,b,c,"I LOVE YOU");
return 0;
}
结果为:the a is: 10
the b is :A
the c is :0.000000
the string is: @
修改后的程序为:
#include<stdio.h>
int main()
{
int a=10,b='A',c=12.34;
printf(" the a is: %d\n the b is: %c\n the c is :%f\n the string is :%s\n",a,b,c,"I LOVE YOU");
return 0;
}
结果为:the a is: 10
the b is :A
the c is :0.000000
the string is: @