有以下程序 #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 def
B.abc del
C.abc d
D.d d
[单选题]有以下程序: include main( ) { char *p ,* q; p=(char * )malloc(sizeof(char有以下程序: #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 def
[单选题]有以下程序:include include main(){char *p[10]={"abc","aabdfg","dcdbe"有以下程序: #include <stdio.h> #include <string.h> main() { char *p[10]={"abc","aabdfg","dcdbe","abbd","cd"}; printf("%d/n",strlen(p[4])); } 执行后的输出结果是( )。A.2B.3C.4D.5
[单选题]有以下程序:include main( ) char * p[ ] = {"3697" ,"2548" }; int i,j;long num =0有以下程序: #include <stdio.h> main( ) char * p[ ] = {"3697" ,"2548" }; int i,j; long num =0; for(i =0;i<2;i ++ ) { j =0; while(p[i][j]! ='/0') { if((p[i][j]-'0')%2) nu
[单选题]有以下程序includeincludevoid main( ){char*p="abcde/0fghjik/0"; cou有以下程序 #include<string.h> #include<iostream.h> void main( ) { char*p="abcde/0fghjik/0"; cout<<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
[单选题]有以下程序: point(char *p){P+=3;) main() { char b[4]={'a','b','c','d'},*p=b; point(p);printf("%c/n",*p); } 程序运行后的输出结果是( )。A.aB.bC.cD.d
[单选题]有以下程序: point(char *p) { p+=3; } main() { char b[4]={'a','b','c','d'}, *p=b; point(p); printf("%c/n",*p); } 程序运行后的输出结果是( )。A.aB.bC.cD.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;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