以下程序的输出结果是______。 char cchar(char ch) { if(ch>='A'ch<='z')ch=ch-'A'+'a'; return ch; } main() { char s[]="ABC+abc=defDEF",*p=s; while(* p) { * p=cchar(* p); p++; } printf("% s\n", s); }A.abe+ABC=DEFdefB.abc+abe=defdefC.abcaABCDEFdefD.abcabcdefdef
以下程序的输出结果是______。 char cchar(char ch) { if(ch>='A'&&ch<='z')ch=ch-'A'+'a'; return ch; } main() { char s[]="ABC+abc=defDEF",*p=s; while(* p) { * p=cchar(* p); p++; } printf("% s\n", s); }
A.abe+ABC=DEFdef
B.abc+abe=defdef
C.abcaABCDEFdef
D.abcabcdefdef
相关考题:
在执行以下程序时,如果从键盘上输入ABCdef,则输出为______。include main(){char 在执行以下程序时,如果从键盘上输入ABCdef<回车>,则输出为______。#include <stdio.h>main (){ char ch; while ((ch=getchar())!="\n") { if (ch>='A' ch<='B')ch=ch+32; else if (ch>='a' ch<='z')ch=ch-32; printf("%c",ch); } printf("\n");}A.ABCdefB.abcDEFC.abcD.DEF
以下程序的输出结果是()。includecharcchar(chareh){if(ch>='A,ch 以下程序的输出结果是( )。 #include <stdio.h> charcchar(char eh) { if(ch>='A,ch<='Z') ch=ch-'A'+'a'; return ch; } main() { char s[]="ABC+abc=defDEF",*p=s; while(*p) { *p=cchsr(*p); p++; } printf("%s\n",s); }A.abc+ABC=DEFdefB.abc+abc=defdefC.abcABCDEFdefD.abcabcdefdef
以下程序的输出结果是 【 11 】。#include stdio.hmain( ){ char *ch[4]={"red',"green","blue"};int i=0;while( ch[i] ){ putchar( ch[i][0]); i++;)}
有以下程序: include main( ) { char ch=′Z′; ch=(ch-′A′+1)%26+′A′;putchar(ch); } 程序的运行结果是( )。 A.ZB.YC.BD.A
以下程序的输出结果是 char cchar(char ch) { if(ch>='A'ch<='Z') ch=ch-'A'+'a'; return ch; } main ( ) { char s [] = "ABC+abc=defDEF" , *p=s; while (*p) { *p=cchar(*p); p++; } printf { "%$\n", s); }A.abc+ABC=DEFdefB.abc+abc=defdefC.abcABCDEFdefD.abcabcdefdef
判断char型变量ch是否为小写字母的正确表达式是()。A.('a'>=ch)||('z'<=ch)B.'a'<=ch<='z'C.(ch>=a)(ch<=z)D.(ch>='a')(ch<='z')
判断char型变量ch是否为小写字母的正确表达式是()A.’a’<=ch<=’z’B.(ch>=’a’)(ch<=’z’)C.(ch>=’a’)(ch<=’z’)D.(‘a’<=ch)and(‘z’>=ch)
断char型变量ch是否为小写字母的正确表达式是()。A.'a' <= ch <= 'z'B.(ch >= a) (ch <= z)C.(ch >= 'a') (ch <= 'z')D.('a' >= ch) || ('z' <= ch)
判断char变量ch是否为大写字母的正确表达式是:()A.‘A’<=ch<=’Z’B.(ch>=’A’) (ch<=’Z’)C.(ch>=’A’) (ch<=’Z’)D.(‘A’<=ch) AND (‘Z’>=ch)