Wednesday, September 1, 2010

2d arrays vs array of pointer

If you want to get through this, please read this article about arrays.
int (*arrptr)[10]; //Array of 10 int pointers
int *ptr[10]; // pointer-to-array of 10 ints


So pointer to array implies that there is some array, somewhere we don't know.

No comments:

Post a Comment