二维数组指针玩法
二维数组存的是每行开始的第一个数据的地址;
mul_ary[3][3] = {
{1,2,3},
{4,5,6},
{7,8,9}
};
数组名是该元素的首地址
mul_ary == &mul_ary[0][0]
mul_ary+1 == &mul_ary[1][0]
mul_ary+2 == &mul_ary[2][0]
创建指针变量 *pti[3]
令指针变量pti = mul_ary
则pti + 1 == &mul_ary[0][1]
pti + 2 == &mul_ary[0][2]
*((*pti+0)+0) == mul_ary[0][0] == 1
*((*pti+1)+0) == mul_ary[1][0] == 2
*((*pti+2)+0) == mul_ary[2][0] == 3
*((*pti+1)+1) == mul_ary[1][1] == 5
*((*pti+1)+2) == mul_ary[1][2] == 6