网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
有以下程序
#include <stdio.h>
void fun(char **p)
{ ++p; printf("%s\n",*p);}
main()
{ char *a[]={"Morning","Afternoon","Evening","Night"};
fun(a);
}
程序的运行结果是
A ) Afternoon
B ) fternoon
C ) Morning
D ) orning
参考答案
更多 “ 有以下程序#include stdio.hvoid fun(char **p){ ++p; printf("%s\n",*p);}main(){ char *a[]={"Morning","Afternoon","Evening","Night"};fun(a);}程序的运行结果是A ) AfternoonB ) fternoonC ) MorningD ) orning ” 相关考题
考题
有以下程序:includevoid fun(char**p){++P;printf("%s\n",*p);}main()char*a[]={"Morn
有以下程序: #include<stdio.h> void fun(char**p) { ++P;printf("%s\n",*p);} main() char*a[]={"Morning","Afternoon","Evening","Night"}; fun(A); } 程序的运行结果是( )。A.AfternoonB.fternoonC.MorningD.oring
考题
有以下程序 include void fun(char **p) { ++p; printf("%s\n",*p);
有以下程序 #include <stdio.h> void fun(char **p) { ++p; printf("%s\n",*p); } main() { char *a[]={"Moming","Afternoon","Evening","Night"}; fun(a); } 程序的运行结果是A.AfternoonB.fternoonC.MorningD.orning
考题
有以下程序#include stdio.hvoid fun(char **p){ p=p+2; printf("%s\n",*p);}main(){ char *a[]={"Morning","Afternoon","Evening","Night"}; fun(a);}程序的运行结果是A.rningB.afternoonC.ternoon D.Evening
考题
有以下程序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 dD.d d
考题
有以下程序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 delC.abc dD.d d
考题
有以下程序: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 defC.abe dD.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 defC.abc dD.d d
考题
有以下程序#includestdio.hvoid fun(char **p){++p; printf(“%s\n”,*p);}main(){char *a[]={“Morning”,”Afternoon”,”Evening”,”Night”};fun(A.;}程序的运行结果是( )。A.AfternoonB.fternoonC.MorningD.orning
考题
21、以下程序执行后的结果为 。 #include "stdio.h" #include <string.h> void fun(char *s) { char a[10]; strcpy(a,"string"); s=a; } main() { char *p="gao"; fun(p); printf("%s\n",p); }A.gaoB.结果不确定C.strD.string
热门标签
最新试卷