I am just breaking my head and trying to figure out how double pointers are represented in box and circle diagrams and how they might change by changing the values. Can anyone help?

Recommended Answers

All 2 Replies

Take your description for how a pointer to a T works.

That description works even when T is a pointer to a U.

Imagine a liked list with no data in it. You get pointer pointing to pointers.( chain of pointers)
When declaring the pointers, always read from right to left

int * p; //Declare p a pointer to int
int* *q;//Declare q as a pointer to, pointer to int
int*  *  *r//Declare r as a pointer to (a pointer to (a pointer to an int) )

Well this was from C++;

A double pointer has an ability to store the address of a pointer.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.