题目内容

若成功执行下面的代码: int x=1,y=0; if(!x) y++; else if(x==0) if(x) y += 2; else y += 3; printf("%d",y); 给出输出结果?

A. 3
B. 2
C. 1
D. 0

查看答案
更多问题

若有下面的定义: int x,y; 并且x和y已正确赋值,在条件表达式中: (x-y)?(x++):(y++);哪个选项与(x-y)是等价的?

A. (x-y<0||x-y>0)
B. (x-y<0)
C. (x-y>0)
D. (x-y==0)

以下源程序: #include int main(){ char ch1,ch2; scanf("%c",&ch1); fflush(stdin); scanf("%c",&ch2); fflush(stdin); printf("%c%c",ch1,ch2); return 0; } 其编译运行后, 下面哪个输入可以得到: AB的输出? 其中, 表示 #空格, @表示回车

A@B@
B. AB@
C. A#B#@
D. A##B##

若成功执行下面的代码: int x,y,z; x=y=1; z=x++,y++,++y; printf("%d,%d,%d",x,y,z); 给出输出结果?

A. 2,3,3
B. 2,3,2
C. 2,3,1
D. 2,2,1

After the following declaration, you can define and initialize a variable birth of this structure type as follows ____. struct Date { int month; int day; int year; };

A. Date birth = {12, 28, 1987};
B. struct Date birth = {12, 28, 1987};
C. Date birth = {12; 28; 1987};
D. struct Date birth = {12; 28; 1987};

答案查题题库