题目内容

若有下面的定义: 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};

____ is NOT a valid C statement.

A. struct {int month; int day; int year;} birth;
B. struct {int month; int day; int year;} birth, current;
C. struct Date {int month; int day; int year;};
D. struct {int month, int day, int year} birth;

答案查题题库