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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -