1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14.

Friday, April 3, 2009

What is the difference between an array of pointers and a pointer to an array?

This is an array of pointers


int *p[10];


This is a pointer to a 10 element array


int (*p)[10];

 
# #