#define N 5
#include <stdio.h>
void main( )
{ int a[N]={ 1, 2, 3, 4, 5 }, t, i;
for(i=0;i<N;i++)
printf("%4d", a[i]);
for(i=0;i<N/2;i++)
{ t=a[i]; a[i]=a[N-i-1]; a[N-i-1]=t; }
for(i=0;i<N;i++)
printf("%4d", a[i]);
}
11-16
5853
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
10-15
6249
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)