#include
void fanxu(int c[], int j);
void main()
{
int c[5],j;
printf("请输入数组:");
for(j=0;j<5;j++)
scanf("%d",&c[j]);
fanxu(c, j);
}
void fanxu(int c[], int j)
{
int t;
for(j=0;j<5/2;j++)
{t=c[j];c[j]=c[4-j];c[4-j]=t;}
printf("反序数组为:\n");
for(j=0;j<5;j++)
printf("%d\t",c[j]);
}希望有所帮助 记住那个兑换时 已经改变了 需要一个变量