单选题:有以下程序: #include(stdio.h>main(  ){char a,b,c,d; scanf("%c%C",

  • 题目分类:C语言
  • 题目类型:单选题
  • 查看权限:VIP
题目内容:
有以下程序:
#include(stdio.h>
main(  )
{char a,b,c,d;
scanf("%c%C",&a,&b);
c=getchar(  );d=getchar(  );
printf{"%c%c%c%c\n",a,b,C,d);
}
当执行程序时,按下列方式输入数据(从第l列开始,<CR>代表回车j注意:回车也是
一个字符)
12<CR>
34<CR>
则输出结果是(  )。 A.1234
B.12
C.12
3
D.12
34

参考答案:
答案解析:

以下叙述正确的是(  )。

以下叙述正确的是(  )。 A.C语言程序是由过程和函数组成的 B.C语言函数可以嵌套调用,例如:fun(fun(x)) C.C语言函数不可以单独编译 D.C语

查看答案

Why did the person ask for two glasses of beer instead of on

Why did the person ask for two glasses of beer instead of one big glass?A.Becaus

查看答案

Why wouldn' t Uncle Smith come on Saturday?

Why wouldn' t Uncle Smith come on Saturday?A.He only wanted to come on Sunday. B

查看答案

What will the man and the woman buy for Julia?

What will the man and the woman buy for Julia?A.A record. B.A new pen. C.A box o

查看答案

What' s wrong with the man?

What' s wrong with the man?A.He overslept again. B.He can' t tell the woman the

查看答案