Hi,
Can any one explain me the difference between Array of pointers and pointer array?
Regards
Saravanan
An array of pointers is an array, where the elements are pointers to some memory location.
for eg-
it would be something like
int* parr[10];
here parr[0],parr[1],etc are pointer variables
A pointer to an array is when a pointer is pointing to the starting address of an array.
eg, let int arr[10] be an array. A pointer that points to arr[0], would be a pointer to an array