单项选择题
运行下列程序,若从键盘输入字母“a”,则输出结果是( )。
Char c;
c=getchar();
if(c>='a'&&c<='g')c=c+4;
else if(c>='g'&&c<='z')c=c-21;
else printf("input error!\n");
putchar(C) ;
A.f
B.t
C.e
D.d
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
简单的交换排序方法是( )。
A.快速排序
B.选择排序
C.堆排序
D.冒泡排序
点击查看答案&解析
单项选择题
下列语句段中,正确的是( )。
A.struct
int x;
float y;
int a[2];
unsigned b[3];
char name[10];
;
B.structstu
unsigneda[3];
unsigned b[4];
x;
int*p=&x.a;
C.struc tsu
int a;
float x[4];
y=1,1.0;
floatdat a=y.x;
D.stmct nd
int a,b;
unsigned c[2]=5;
;
点击查看答案&解析
相关试题
下列程序的输出结果是( )。 #include...
若执行下列的程序时,从键盘上输入1和2,...
下列程序的输出结果是( )。 void f(i...
设有定义:int nl=0,n2,*p=&n2,...
下列程序的输出结果是( )。 main() ...