有以下程序: #include <string.h> main() { char str[][20]={"Hello","beijing"},*p=str; ptintf("%/n",strlen(p+20)); } 程序运行后的输出结果是( )。
A.0
B.5
C.7
D.20
[单选题]有以下程序: includemain(){ char str[][20]={"Hello","Beijing"},*p=str;printf("%有以下程序: # include<string.h> main() { char str[][20]={"Hello","Beijing"},*p=str; printf("%d/n",strlen(p+20)); } 程序运行后的输出结果是 ______。A.0B.5C.7D.20
[单选题]以下程序:includeincludemain(){char str[]="abcd/n/123/xab";printf("%d"以下程序: #include<stdio.h> #include<string.h> main() {char str[]="abcd/n/123/xab"; printf("%d",(str)); } 运行后的输出结果是( )。A.10B.9C.7D.14
[单选题]以下程序:includemain(){char str[10];scanf("%s",&str);printf("%s/n",str);}运以下程序: #include<stdio.h> main() {char str[10]; scanf("%s",&str); printf("%s/n",str); } 运行上面的程序,输入字符串how are you,则程序的执行结果是( )。A.howB.how are youC.hD.howareyou
[单选题]有以下程序#includemain(){ char str[][20]={"Hello","Beijing"},*p=str;printf("%d/n",strlen(p+20));}程序运行后的输出结果是A.0B.5C.7D.20
[单选题]有以下程序main(){ char str[]="xyz",*ps=str; while(*ps) ps++; for(ps--; ps-str>=0; ps--) puts(ps);} 程序的运行结果是A.yz B.z C.z D.x xyz yz yz xy xyz xyz
[单选题]有以下程序: main() { char str[]="xyz", *ps=str; while(*ps) ps++; for(ps--;ps-str>=O;ps--) puts(ps); } 执行后的输出结果是( )。A.yz xyzB.z yzC.z yz xyzD.x xy xyz
[单选题]有以下程序:includemain(){char *p="abcde/Ofghjik/0";printf("%d/n",strlen(p));}程有以下程序: #include <string.h> main() {char *p="abcde/Ofghjik/0"; printf("%d/n",strlen(p)); } 程序运行后的输出结果是( )。A.12B.15C.6D.5
[单选题]有以下程序includemain(){char*a[]={"abcd","ef","gh","ijk"};int i; for(i=0;i<4;i£«£«有以下程序 #include<stdio.h> main() { char*a[]={"abcd","ef","gh","ijk"}; int i; for(i=0;i<4;i++) printf("%c",*a[i]); } 程序运行后的输出结果是______。A.ageiB.dfhkC.abcdD.abc
[单选题]有以下程序includemain(){char*a[]={"abcd","ef","gh","ijk"};int i; for(i=0;i<4;i£«£«有以下程序 #include<stdio.h> main() { char*a[]={"abcd","ef","gh","ijk"}; int i; for(i=0;i<4;i++) printf("%c",*a[i]); } 程序运行后的输出结果是______。A.ageiB.dfhkC.abcdD.abc
[试题]#includemain(){ char str[ ]=“The C program”,c;int i;for(i=2;(c=str[i])!=‘/0’;i++){ switch(c){ case ‘g’: ++i; break;case ‘o’: continue;default: printf(“%c”,c); continue;}printf(“*”);}printf(“/n”);}