题目内容

以下程序输出的结果是。void main(){int a = -1, b = 3, k;if(++a)printf("%d,%d\n", a, ++b);elseprintf("%d,%d\n", b++, a);}

查看答案
更多问题

以下程序的输出结果是。void main(){int i = 1;while(i <= 10)if(++i % 3 != 2)continue;elseprintf("%d,", i) ;}

以下程序的输出结果是____。void main(){int z, i = 0, j = 6;z = i++ && j++;printf("%d,%d,%d\n", i, j, z);}

下面程序的输出是。int f(){int i = 1, s = 1;s += i;return s;}void main(){int i, a = 0;for(i = 0; i < 5; i++)a += f();printf("a=%d\n", a);}

从键盘中输入-1,以下程序输出的结果是。void main(){int x, y;scanf("%d", &x);y = 0;if(x >= 0)y = 1;elsey = -1;printf("x=%d,y=%d", x, y);}

答案查题题库