int* A[n];
First of all, it is an array, regardless of the type of element. After applying the * pointer, we know that A is an array of int pointers.
int (*A)[n];
By using parentheses, the * pointer takes precedence over the [] array in this case. Then A is, first of all, a pointer, regardless of what it points to. After applying the array [], we know that A is a pointer to an int array.
int *(A[n]);
The brackets will not change the order of priorities, which will affect the array [], so removing the brackets will cause int* A[n] be the same as your 1st case.
Are array pointers?
Not. Array is a data structure that allocates a memory pool and stores data sequentially when the pointer points to a specific index in the memory pool and refers to data stored in this memory cell.
Imran mirza
source share