这个reference 和*的区别# Programming - 葵花宝典
m*a
1 楼
int ia[3][4]={1,2,3,4,5,6,7,8,9,10,11,12}; // array of size 3; each element
is an array of ints of size 4
int (&p)[3][4] = ia; // p references to an array of four ints
但是用point的花
int (*q)[4]=ia;//q point to an array of ints 4
都是可以实现*(*(p+1)+2) *(*(q+1)+q)的运算的
为啥不可以写int (&p)[][4] = ia, int (&p)[4] = ia?
is an array of ints of size 4
int (&p)[3][4] = ia; // p references to an array of four ints
但是用point的花
int (*q)[4]=ia;//q point to an array of ints 4
都是可以实现*(*(p+1)+2) *(*(q+1)+q)的运算的
为啥不可以写int (&p)[][4] = ia, int (&p)[4] = ia?