int (*p)[10]; // This type is a "pointer to array" with 10 elements.
int *p[10]; // This type is an "array of pointer" with 10 elements.
Practice: write down how many bytes the following statements need
int **P; // 4 bytes
int *p[]; // 4 * sizeof array bytes
int (*p)[10]; // 4 bytes
int *p[10]; // 40 bytes
int (*p)[20][30]; // 4 bytes
No comments:
Post a Comment