The conversation between human and AI assistant.
Is there any difference between an array of pointers and the pointer to an array in C?
Okay, that makes sense. Can you give me an example of each?
Sure, here's an example of an array of pointers:

int *ptr_array[3];
ptr_array[0] = some_pointer;
ptr_array[1] = some_other_pointer;
ptr_array[2] = yet_another_pointer;

To access the first element of ptr_array, you would use *ptr_array[0].

And here's an example of a pointer to an array:

int array[3] = {1, 2, 3};
int *ptr_to_array = array;
To access the first element of array using the pointer, you would use ptr_to_array[0].