4、3)float(*p)();2)int**p;4)char*(*a)[];8、以下程序段的输出结果为:#includevoidmain(){ints[]={1,2,3,4,5,6,7,8,9},*p;p=s;*(p+5)=22;p++;printf("%d,%d",*p,*(p+4));}输出结果是:2,229、下列程序的输出结果是:#includevoidmain(){inta[5]={2,4,6,8,10},*p,**k;p=a;k=&p;printf("%d",*(p));printf("%d",**k);}A)44B)22C)24D)结
5、果错误10、写出下面程序的运行结果。#include"stdio.h"#include"string.h"voidmain(){chara[30]="nicetomeetyou!";intb;b=strlen(a)-9;strcpy(a+b,"you");printf("%s",a);}运行结果:nicetoyou!11、下列程序的输出结果是多少?#includevoidfun(int*a,int*b){intk;k=5;*a=k;*b=*a+k;}voidmain(){int*a,*b,x=10,y=15;a=&x;b=&y;fun(a,b);printf("%d
6、,%d",*a,*b);printf("%d,%d",x,y);}运行结果:5,105,1012、以下程序段的输出结果是()#includevoidmain(){inta[10]={9,8,7,6};int*p;p=a;printf("%d,%d",*p,*(p+2));}运行结果:9,713、已有变量定义和函数调用语句:inta=25;print_value(&a);下面函数的正确输出结果是()。voidprint_value(int*x){printf("%d",++(*x));}A)23B)24C)25D)2614、阅读下面程序,输出结果是多少?#
7、include"stdio.h"voidmain(){intc[6]={1,2,3,4,5,6};int*p;p=c;printf("%d,",*++p);p=p+3;printf("%d“,*p--);}运行结果:2,515、阅读下面程序,则程序的输出结果是多少?#includevoidmain(){inti;char**p;char*name[]={"Ann","Hare","Jack","Mary"};p