c language reverse order
. 1 #include <the iostream> 2 int main () { . 3 // grenades bar flea . 4 int A [] = { . 1 , 2 , . 3 , . 4 , . 5 , . 6 }; . 5 // array size . 6 int length = the sizeof (A ) / the sizeof (A [ 0 ]); . 7 for ( int min = 0 , = Length-max . 1 ; min <max; ++ min, max - ) { . 8 int T = A [min]; . 9 a[min]=a[max]; 10 a[max]=t; 11 } 12 printf("逆序:"); 13 for(int i=0;i<length;i++){ 14 printf(" %d",a[i]); 15 } 16 return 0; 17 }