有以下程序: #include <string.h> main() {char *p="abcde/Ofghjik/0"; printf("%d/n",strlen(p)); } 程序运行后的输出结果是( )。
A.12
B.15
C.6
D.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
[单选题]有以下程序: 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,*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/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\0fghjik\0 ";printf("%d\n ",strlen(p));}程序运行后的输出结果是A.12B.15C.6D.5
[单选题]以下程序includeincludemain(){ char*p1="abc",*p2="ABC",str[50]="xyz";s以下程序 #include<stdio.h> #include<string.h> main() { char*p1="abc",*p2="ABC",str[50]="xyz"; strcpy(str+2,strcat(p1,p2)); printf("%ss/n",str); } 的输出是______。A.xyzabcABCB.zabcA
[单选题]有以下程序:includemain(){char str[][20]={"Hello","beijing"},*p=str;ptintf("%/n"有以下程序: #include <string.h> main() { char str[][20]={"Hello","beijing"},*p=str; ptintf("%/n",strlen(p+20)); } 程序运行后的输出结果是( )。A.0B.5C.7D.20