填空题

下列程序的输出结果是 【8】 。
main()
int i;
for(i=1;i+1;i++)
if(i>4)
printf("%d\n",i);
break;
printf("%d\n",i++);

【参考答案】

1
3
5
<上一题 目录 下一题>
热门 试题

填空题
以下程序的输出结果是 【10】 。 #include <stdio.h> void swap(int *a, int *b) int *t; t=a; a=b; b=t; main() int i=3,j=5,*p=&i,*q=&j; swap(p,q); printf( %d %d n ,*p,*q);
填空题
以下程序的运行结果是 【9】 。 #include <stdio.h> main() int x=1,y=0,a=0,b=0; switch(x) case 1: switch(y) case 0:a++; break; case 1: b++; break; case 2:a++; b++;break; case 3:a++;b++; printf( a=%d,b=%d n ,a,b);
相关试题
  • fseek函数的正确调用形式是 【14】 。
  • 以下程序的作用是:从名为filea.dat的文本...
  • 以下说明语句中, 【13】 是结构体类型...
  • 函数my_cmp()的功能是比较字符串s和t的...
  • 以下程序的输出结果是 【12】 。 floa...