answersLogoWhite

0

What is chain of pointers?

Updated: 10/26/2022
User Avatar

Wiki User

12y ago

Best Answer

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

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is chain of pointers?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are void pointers?

They are pointers without type


Where the pointers are used?

POINTERS ARE USED TO STORE ADDRESS


What are the background pointers in java?

Java does not support pointers.


Pointers are replaced by what in java?

Nothing. Java does not have a concept that is equivalent to Pointers.


How do you get score 6?

3 two-pointers or 2 three-pointers


Can labs be trained as pointers?

Yes, some labs are trained as pointers, and some as retrievers.


If your dog is a pointers and shedding a lot is this normal?

Pointers shed like normal dogs


Can you use pointers in java?

Java does not support Pointers and hence you cannot use it in Java.


How many three-pointers did LeBron James make?

he made about 130,000 three pointers


Why laser mouse are used?

Because the laser pointers are much easier to use than the ball pointers. The ball pointers are often difficult to move around while the laser pointers can move in any direction without "getting stuck"


What are restricted pointers in C99?

Using this you specify that two pointers can't point on the same address


How pointers are used in java?

They aren't. Java uses the (safer) idea of references instead of pointers.