Apr 11, 2015 at 11:09pm
I saw a declaration like this:
int (*a)[2]
What does this mean? Is this a two dimension array? How should I use it ?
Thanks.
Apr 12, 2015 at 1:36am
Probably be easier to just mention it is a pointer to an array of 2 integers and not an array of 2 pointers to integer
Apr 12, 2015 at 3:16am
Thanks, both of you.
So generally, if I declare:
int a[2];
now &(a[0]) is the pointer to the array of 2 integers. It is same as "a" in int (*a)[2] ?
Thanks.
Apr 13, 2015 at 2:26am
Thanks very much, now I think I understand the difference.