#include<stdio.h> main() { int a=5,*p,**q; p=&a; q=&p; printf("\n%d ",a); printf("\n%d ",*p); printf("\n%d ",**q); a++; (*p)++; (**q)++; printf("\n%d %d %d",a,*p,**q); }
5 5 5 8 8 8
#include<stdio.h> main() { int a=5,b=11,c=8,d=55,e=188,f=14,g=33; int *p[7]={&a,&b,&c,&d,&e,&f,&g}; int max; int i; max=*p[0]; for(i=1;i<=6;i++) if(*p[i]>max) max=*p[i]; printf("Greatest No is %d",max); }
Greatest No is 188
#include<stdio.h> main() { char arr[3][10]={"Amit","Gopal","Raj"}; char (*p)[10]; int i; p=arr; for(i=0;i<3;i++) { printf("%s\n", p); p++; } }
Amit Gopal Raj