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

android - Invite new users for my app using app notifications facebook -

Need help in packaging app using TideSDK on Windows -

html - CSS: Combine Texture and Color -