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] defines p array of ten int-pointers.

  • int (*p)[10] defines p pointer array of ten ints. say:

    int a[10];  int (*p)[10] = &a; 

Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -