pointers and arrays in c

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;i++){
printf("%c\n",**ptr_arr[i]+32);
}
getch();
}

Output:
a
b
c
Post a Comment