以下源程序: #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;