有以下程序: #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 def
B.abc def
C.abc d
D.d d
[单选题]有以下程序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; 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,*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
[单选题]有以下程序:void funl(char*p){ char*q;q=P;while(*q!=\O){(*q)++;q++;}}main{ char a[]={"Program"),*P;p=&a[3];funl(p);printf("%s\n",a);}程序执行后的输出结果是( )。A.ProhsbnB.PrphsbnC.ProgsbnD.Program
[单选题]有以下程序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
[单选题]有以下程序 void fun 1 (char *p) { char *q; q=p; while(*q!='/0') {(*q)++;q++;} } main() {char a[]={"Program"},*p; p=&a[3];fun1(p);printf("%s/n",a); } 程序执行后的输出结果是______。A.ProhsbnB.PrphsbnC.ProgsbnD.Program
[单选题]有以下程序void fun1(char *p){ char *q;q=p;while(*q!='/0'){ (*q)++; q++; ) }}main(){ char a[]={"Program"),*p;p=&a[3];fun1(p);printf(" % s/n",a);}程序执行后的输出结果是A.)ProhsbnB.)PrphsbnC.)ProgsbnD.)Program
[单选题]有以下程序: void fun1(char*p) {char*q; q=P; while(*q!='/0') { (*q)++;q++;} } main() {char a[]={"Program"),*p; p=&a[3];funl(p);printf("%s/n",A); } 程序执行后的输出结果是( )。A.ProhsbnB.PrphsbnC.ProgsbnD.Program
[单选题]有以下程序: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