Article Directory
7.7 Pointer array
- Definition of one-dimensional pointer array
- The array name in the pointer array is also a pointer variable, which is a pointer to a pointer
- p is an array of pointers, each element of it is a pointer data (value is the address),
- The first value of the array p is the address of the variable a.
- Elements in the pointer array can be referenced using pointers to pointers. E.g
- * Means p is a pointer variable,
- * (* p) indicates a pointer to a pointer,
- * Combinability is from right to left,
- int * (* p) can be written as int ** p