将的两行三列数组转换为三行两列的数组
#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
int a[2][3]={{1,2,3},{4,5,6}};
int b[3][2],i,j;
for ( i = 0; i <=1; i++)
{
for ( j = 0; j <=2; j++)
{
printf("%5d",a[i][j]);
b[j][i]=a[i][j];
}printf("\n");
}
printf("\n");
for ( i = 0; i <=2; i++)
{
for ( j = 0; j <=1; j++)
{
printf("%5d",b[i][j]);
}
printf("\n");
}
return 0;
}