CodePudding user response:
Int * * parray [10], how to initialize the parray?This is a level 3 Pointers, arrays nature is also a pointer
The secondary pointer:
Int * parray [10].
for(int i=0; i<10; I++)
{
Parray [I]=new int.
}
CodePudding user response:
Deposited in the nature or array, the array is the secondary pointer, so like normal array can be initialized,CodePudding user response:
1/f, explanation is not clear,First you have to understand what is the secondary pointer concept, pointer to a pointer, so it is essentially a pointer and pointer to content is a level 1,
So you can be initialized to NULL pointer (essentially)
Or similar to the pointer to a level below,
Int * p1=& amp; a;
Int * * p2=& amp; P1.
* (* p2) for a;
Array, just a collection of multiple elements,
CodePudding user response: