c - Pointer array and pointers in parantheses -
could tell me difference between
int *p[n];
and
int (*p)[n];
where n
number?
i know first case implies array of pointers, know second declaration implies.
int * p[10]
definesp
array of tenint
-pointers.int (*p)[10]
definesp
pointer array of ten ints. say:int a[10]; int (*p)[10] = &a;
Comments
Post a Comment