Pointer declaration

is it necessary that when we want to store the address of pointer in another pointer ,then it should have two dereference operator in the latter?
can’t we declare another pointer like int * xxptr=&xptr?

Hi Munish, No, we cannot declare a pointer to pointer with a single deference operator because while declaring a pointer, we need to specify what kind of data it points to. So, when we create a pointer to an int type data, we declare its pointer as int *. Similarly, when we create a pointer to another pointer, we need to specify that our current pointer points to a pointer, which further points to an integer. Thus, we need to write int **.
Here is an example of how it should be done: https://ide.codingblocks.com/s/66260