下列程序的运行结果是______。 main() { int a=1,b=10; do { b-=a;a++;}while(b--<0); printf("%d,%d\n",a,b); }

admin2010-12-10  20

问题 下列程序的运行结果是______。
main()
{  int a=1,b=10;
do
{  b-=a;a++;}while(b--<0);
printf("%d,%d\n",a,b);
}

选项 A、PI=3.14159

答案

解析  本题先定义了一个宏名PI,以后在程序中出现PI都用3.14159替代,但是C语言规定:双引号中的宏名是不进行替换的。
转载请注明原文地址:https://kaotiyun.com/show/yLPp777K
0

最新回复(0)