The index operator [] bound more strongly than the warp operator * .
int *poi[2]
translates to:
If you see poi , apply [x] to it, then search for the result with * and get int . So this is an array of 2 pointers to int.
IN
int (*poi)[2]
brackets force * be applied first. Therefore, at any time, poi is used if you first use * and then [x] get an int . So this is a pointer to an array of 2 int .
source share