请问如何上这个二维数组倒置啊。即a[0][0]取12,a[2][3]取0啊。新手。尝试了半天。失败而终啊。求解 谢谢
程序代码:
/* Note:Your choice is C IDE */ #include "stdio.h" void main() { int a[3][4] = { { 1,2,3,4}, {5,6,7,8}, {9,10,11,12}, } ; int i,j; for (i=0;i<3;++i) { for (j=0;j<4;++j) printf ("a[%d][%d] = %d ",i,j,a[i][j]); printf ("\n"); } }