void main(){
int x;
static int i=4,j=8,k=12,l=16,m=20;
static int *p=&i,*q=&j,*r=&k,*s=&l,*t=&m;
//array of pointer
int **ptr_array[5]={&p,&q,&r,&s,&t};
clrscr();
for(x=0;x<5 data-blogger-escaped-span="" data-blogger-escaped-x="">
printf("%d %d\n",**ptr_array[x],***(ptr_array+x));
}
getch();
}
No comments:
Post a Comment