#include <stdio.h>
int main(void)
{
int array[3][3] = {1,2,3,4,5,6,7,8,9};
int array_1[3][3];
printf("原始数组:\n");
for(int i = 0;i<3;i++){
for(int j = 0;j<3;j++){
array_1[j][i] = array[i][j];
printf("%d\t",array[i][j]);
}
printf("\n");
}
printf("转换后数组:\n");
for(int m = 0;m<3;m++){
for(int n = 0;n<3;n++){
printf("%d\t",array_1[m][n]);
}
printf("\n");
}
return 0;
}