本帖最后由 hizog 于 2010-2-26 23:46 编辑
这么热闹啊!我前段时间也用了这个数组,不玩虚的,直接举例。
unsigned char u8_sample1[3]={1,2,3};
unsigned char u8_sample2[3]={3,2,1};
unsigned char *p_u8_sampleX[2]={u8_sample1,u8_sample2};
于是
*p_u8_sampleX[0] = u8_sample1[0];
unsigned char u8_sampleXY[2][3]={{1,2,3}{3,2,1}};
unsigned char (*p)[3] = u8_sampleXY;
*p_u8_sampleXY[0] = u8_sampleXY[0][0]=1;
*(p_u8_sampleXY+1)[2] = u8_sampleXY[1][2]=1;
*(*(p_u8_sampleXY+1)+1) = u8_sampleXY[1][1]=2; |