Chain of pointers

#include<stdio.h>
main()
{
int a,b,c,*d,**e,***f;
printf("Enter an integer");
scanf("%d",&c);
d=&c;
e=&d;
f=&e;
printf("Methods:\nValue entered = %d\n",***f);
printf("Value entered = %d\n",**e);
printf("Value entered = %d\n",*d);
printf("Value entered = %d\n",c);
printf("Value entered = %d\n",*(&c));

}

 

Output:

value

Leave a Reply

Your email address will not be published.