black

C语言程序设计

登录

填空题

下列程序的输出结果是()。
#include
main()
{ int x=1 0;
   { int x=20; printf(“%d,”,x); }
   printf(“%d\n”,x);
}

【参考答案】

20,10

相关考题

问答题 #include static int a=5; main() { printf(“a=%d\n”,a); p1 (); p2();} p1 () { printf(“a*a=%d\n”,a*a); a=2;} p2() { printf(“a*a*a=%d\n”,a*a*a);} 请写出程序的输出结果。

填空题 下列程序的输出结果是()。 main() { int a=3,b=2,c=1 ;c-=++b; b*=a+c; { int b=5,c=1 2; c/=b*2; a-=c; printf(“%d,%d,%d,”,a,b,c); a+=--c; } printf(“%d,%d,%d\n”,a,b,c); }

填空题 下列程序的输出结果是() #include #define MAX_COUNT 4 void fun(); main() { int count; for(count=1 ; count<=MAX_COUNT; count++) fun(); } void fun() { static int i; i+=2; printf("%d",i); }

All Rights Reserved 版权所有©PP题库网库(pptiku.com)

备案号:湘ICP备14005140号-5

经营许可证号:湘B2-20140064