This is an array of pointers
int *p[10];
This is a pointer to a 10 element array
int (*p)[10];
Friday, April 3, 2009
What is the difference between an array of pointers and a pointer to an array?
Posted by Raghu Kumar on 8:17 AM
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14.
c interview questions and answers,c tutorial,c programming,c basics,multiple choice questions in c,c tutorials,android interview questions and answers,operating system interview questions,os interview questions,linux interview questions,strings in c,data structures interview questions.
This is an array of pointers
int *p[10];
This is a pointer to a 10 element array
int (*p)[10];