, int (*p)[10] p 10- int, int *p[10] p 10- int,
C , . , , .
, p - int ( ). , ,
x = *p[i];
Postfix, [] (), , , *, *(p[i]) (IOW, * p[i]),
*p[i] int, p int *p[10];.
, p int ( ). , ,
x = (*p)[i];
Again, since it []has a higher priority than *, we need to use parentheses to explicitly associate *only with p, and not p[i]. The type of expression (*p)[i]is equal int, so the declaration pis equal int (*p)[10];.
source
share