Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are pointers to pointers good for?

Tags:

People also ask

Can a pointer point to 2 things?

Yes. A pointer p to type T can point to a single T , or to an array of T .

Can a pointer point to another pointer?

The things is a pointer contains the address, i.e. the value of a pointer variable is an address of memory. If you assign this to another pointer, then this address is assigned just like normal integer. However, pointing to a pointer (that is a pointer to pointer or **) is different from assigning a pointer to another.


In the Go programming language; how can pointers to pointers become useful?

(Why are they not illegal if they are not really useful?)