单项选择题
有以下程序
#include<stdio. h>
main() char c1='1',c2='2';
c1=getchar();
c2=getchar();
putchar(c1);
putchar(c2); 当运行时输入:a<回车> 后,以下叙述正确的是
A.变量c1被赋予字符a,c2被赋予回车符
B.程序将等待用户输入第2个字符
C.变量c1被赋予字符a,c2中仍是原有字符2
D.变量c1被赋予字符a,c2中将无确定值
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
下面对对象概念描述错误的是
A.任何对象都必须有继承性
B.对象是属性和方法的封装体
C.对象间的通讯靠消息传递
D.操作是对象的动态属性
点击查看答案&解析
单项选择题
以下选项中不能正确把c1定义成结构体变量的是
A.typedef struct
int red:
int green:
int blue;
COLOR;
COLOR c1;
B.struct color c1
int red
int green:
int blue;
;
C.struct color
int red ,
int green :
int blue :
)cl;
D.struct
int red;
int green;
int blue
c1 ;
点击查看答案&解析
相关试题
以下程序中,函数SumColumMin 的功能是:...
以下程序的功能是调用函数fun计算:m=1-...
以下程序运行后输入:3,abcde<回车>,...
有以下程序#include <stdio. h>main...
以下函数的功能是删除字符串s中的所有数字...