有以下程序 #include<string.h> main() { char *p=“abcde、Ofghjik/0”; printf(“%d/n”,strlen(p)); } 程序运行后的输出结果
A.12
B.15
C.6
D.5
[单选题]有以下程序include.main(){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 *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*p,*q;p=(char *)malloc(sizeof(char)*20);q=p;scanf(有以下程序 #include<stdlib.h> main() { char*p,*q; p=(char *)malloc(sizeof(char)*20);q=p; scanf(“%s%s”,p,q);printf(“%s%s/n”,p,q); } 若从键盘输入:abc def<回车>,则输出结果是A.def defB.abc defC.abc d
[单选题]有以下程序: includemain(){char*p,*q; p=(char *)malloc(sizeof(char)* 20);q=p; sca有以下程序: # include<stdio.h> main() { char*p,*q; p=(char *)malloc(sizeof(char)* 20);q=p; scanf("%s %s",p,q);printf("%s %s/n",p,q); } 若从键盘输入;abc def<回车>,则输出结果是 ______。A.def de
[单选题]有以下程序:includemain(){char *p,*q;p=(char*)malloc(sizeof(char)*20);q=p;scanf(有以下程序: #include <stdlib.h> main() { char *p,*q; p=(char*)malloc(sizeof(char)*20); q=p; scanf("%s%s",p,q); ptintf("%s%s/n",p,q); } 若从键盘输入abc def<回车>,则输出的结果是( )。A.def defB.ab
[单选题]有以下程序:includemain(){char *p,*q; p=(char*)malloc(sizeof(char)*20);q=p; scan有以下程序: #include <stdlib.h> main() { char *p,*q; p=(char*)malloc(sizeof(char)*20);q=p; scanf("%s%s",p,q); printf("%s%s/n",p,q); } 若从键盘输入:abc def<回车>,则输出结果是( )。A.def defB.abc
[单选题]有以下程序: include main( ) { char *p="abcde/0ghjik/0"; printf("%d/n",str有以下程序: #include<string.h> main( ) { char *p="abcde/0ghjik/0"; printf("%d/n",strlen(p) ); } 程序运行后的输出结果是A.12B.15C.6D.5
[单选题]有以下程序#includemain(){ char *p="abcde\0fghjik\0 ";printf("%d\n ",strlen(p));}程序运行后的输出结果是A.12B.15C.6D.5
[单选题]有以下程序: 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
[单选题]有以下程序:includemain(intargc, char *argv[ ]){int i,len=0;for(i=1;i有以下程序: #include <string.h> main(int argc, char *argv[ ]) { int i,len=0; for(i=1;i<argc;i+=2) len+=strlen(argv[i]); printf("%d/n",len); } 经编译链接后生成的可执行文件是ex.exe,若运行时输入以下带参数的命令行 ex abcd ef