单选题:有下列程序: #include<stdi0.h>voidmain(  ) {inta1,a2charc1,c2; sca

  • 题目分类:C++
  • 题目类型:单选题
  • 查看权限:VIP
题目内容:
有下列程序:
#include<stdi0.h>
voidmain(  )
{inta1,a2charc1,c2;
scanf("%d%c%d%C",&a1,&c1,&a2,&c2);
printf("%d%c%d%C",a1,c1,a2,c2);
}
若想通过键盘输入,使得a1的值为12,a2的值为34,c1的值为字符a,c2的值为字符b,程序输出结果是12,a,34.
A.12a34b<CR>
B.
C.12,a,34,b<CR>
D.

参考答案:
答案解析:

Why did the phone charge surprise the man?

Why did the phone charge surprise the man?A.He didn’t make any calls. B.He didn

查看答案

一Could you__________me your bike.*Mine is broken. 一Sure.It’

一Could you__________me your bike.*Mine is broken. 一Sure.It’s there.A.borrow B.

查看答案

Trains or buses stop there.

Trains or buses stop there.

查看答案

有如下程序: #include<iostream>usingnamespacestd; classXA{inta; pu

有如下程序: #includeusingnamespacestd; classXA{inta; public: staticin

查看答案

字符串“a+b=12\n\t”的长度为(  )。

字符串“a+b=12\n\t”的长度为(  )。 A.12 B.10 C.8 D.6

查看答案