3.void main()
{ char *alpha[4]={"ABCD","EFGH","IJKL","MNOP"};
char *p; int i;
p=alpha[0];
for(i=0;i<4;p=alpha[++i]) printf("%c",*(p));
printf("\n");
}
4.下列程序段的输出是_____。
char *a[2]={"one", "two"}, **p=a;
printf("%s,", *(p++)+1);
printf("%c\n", **p-1);
5.下列程序的输出结果是( )。
#include <stdio.h>
void main()
{ static int a[]={2,4,6,8,10};
static *ptr[]={&a[0],&a[1],&a[2],&a[3],&a[4]};
int **p,i;
for(i=0;i<5;i++) a[i]=a[i]/2+a[i];
p=ptr;
printf("%d,",*(*(p+2)));
printf("%d\n",*(*(p++)));
}