answersLogoWhite

0

A pointer can point to address of another pointer. consider the example

int x=456, *p1, **p2;p1 = &x;p2 = &p1;

Copyright Einstein College of EngineeringDepartment of Civil Engineering

TOP

printf("%d", *p1); will display value of x 456.printf("%d", *p2); will also display value of x 456. This is because p2 point p1, and p1 points x.Therefore p2 reads the value of x through pointer p1. Since one pointer is points towards anotherpointer it is called chain pointer. Chain pointer must be declared with ** as in **p2

User Avatar

Wiki User

13y ago

What else can I help you with?