请读程序: # include<stdio.h> Char fun(char*c) (if(c<='z'& & * c>='A') * c-='A'-'a' return * c; } main() { char s[81],* p=s; gets(s); while(* p) { * p=fun(p);putchar(* p);p + +; puchar('/n'); } 若运行时从键盘上输入OPEN THE DOOR <CR>(<CR>表示回车),则上面程序的输出结果是 ( )
A.oPEN tHE dOOR
B.ope the door
C.OPEN THE DOOR
D.Open The Door
[单选题]下面程序运行结果为( )。 main() { char c='a'; if('a'<c< ='z') cout<<"LOW"; else cout<<"UP"; }A.LOWB.UPC.LOWUPD.语句错误,编译不能通过
[单选题]有以下程序includemain(){char p[]={'a','b','c'},q[10]={'a','b','c'}; printf("%d%有以下程序 #include<string.h> main() { char p[]={'a','b','c'},q[10]={'a','b','c'}; printf("%d%d/n",strlen(p),strlen(q));} 以下叙述中正确的是A.在给p和q数组置初值时,系统会自动添加字符
[单选题]有以下程序includemain(){char p[]={'a','b','c',},q[10]={'a','b','c'}; printf("%d有以下程序 #include<string.h> main() { char p[]={'a','b','c',},q[10]={'a','b','c'}; printf("%d%d/n",strlen(p),strlen(q));} 以下叙述中正确的是A.在给p和q数组置初值时,系统会自动添加字
[单选题]有以下程序: main( ) { char a[ ]={‘a',‘b',‘c',‘d',‘e',‘f',‘g',‘h',‘/0'};int i,j; i=sizeof(a);j=strlen(a); printf("%d,%d/n",i,j); } 程序运行后的输出结果是A.9,9B.8,9C.1,8D.9,8
[单选题]有以下程序: main() { char a='a', b; printf("% c, ",++a); printf("% c/n", b=a++); 程序运行后的输出结果是______。A.b, bB.a, bC.b, cD.a, c
[单选题]有以下程序: main() { char p[]={'a','b','c},q[]="abc"; printf("%d %d/n",sizeof(p),sizeof(q)); } 程序运行后的输出结果是( )。A.4 4B.3 3C.3 4D.4 3
[单选题]有以下程序: main() { char p[]={'a','b','c'},q[]="abc"; printf("%d%d/n",sizeof(p),sizeof(q)); } 程序运行后的输出结果是 ______。A.4 4B.3 3C.3 4D.4 3
[单选题]有以下程序: main() {char p[]={'a', 'b', 'c'}, q[]="abc"; printf("% d % d/n", sizeof(p), sizeof(q)); }; 程序运行后的输出结果是______。A.4 4B.3 3C.3 4D.4 3
[单选题]有以下程序main(){ char a='a',b;print("%c,",++a);printf("%c/n",b=a++);}程序运行后的输出结果是A.b,bB.b,cC.a,bD.a,c
[单选题]有以下程序 main() {char a[]={'a','b','c','d','e','f','g','h','/0'};int i,j; i=sized(a);j=stden(a); printf(“%d,%d/n”,i,j); } 程序运行后的输出结果是A.9,9B.8,9C.1,8D.9,8