struct idata { char arr1[5];
}STRUC_a[ ]={{1,2,3},{4,5,6},{0,0,0,0},{7,8,9,1},{1,3,5},{2,4,6},{3,5,7}};
// Êä³ö---->{{1,2,3},{4,5,6},{7,8,9,1},{1,3,5},{2,4,6}, {2,4,6},{3,5,7}};
void main(void)
{
char i, *p = STRUC_a[2].arr1;
for(i=0; i<=15;*p=*(p+5),p++, i++);
} |