void main(){
int i;
static char c1='A',c2='B',c3='C';
static char *p1=&c1,*p2=&c2,*p3=&c3;
//array of pointer
char **ptr_arr[5]={&p1,&p2,&p3};
clrscr();
for(i=0;i<3 data-blogger-escaped-i="" data-blogger-escaped-span="">
printf("%c\n",**ptr_arr[i]+32);
}
getch();
}
Output:
a
b
c
No comments:
Post a Comment