#include<stdio.h>
int main(){
int arr[2][3]={1,3,5,7,9,12};
int (*p)[2][3]=&arr;
for (int i = 0; i < 2; i++) {
for (int j = 0; j < 3; j++) {
printf("%d\t",(*p)[j]);
}
printf("\n");
}
(*p)[1][2] = 10;
for (int i = 0; i < 2; i++) {
for (int j = 0; j < 3; j++) {
printf("%d\t",(*p)[j]);
}
printf("\n");
}
return 0;
}
|
|