二维数组
int arr[3][4] = { 1,2,3,4,5,6,7,8,9,10,11,12 };
int arr1[3][4] = { {1,2,3,4},{5,6,7,8},{9,10,11,12} };
int arr2[3][4] = { 1,2,3,4,5 };
int arr3[3][4] = { {1} ,{2}, {3} };
int arr4[][3] = {1,2,3,4};
//下标访问
arr[1][2] = 70;
//遍历
int i, j;
for (i = 0; i < 3; i++)
{
for (j = 0;j < 4;j++)
{
printf("%d\n",arr[i][j]);
}
}
int(*p1)[3][4] = &arr;
int(*p2)[4] = arr;
int*p3 = *arr;