#include<stdio.h>
void main()
{
int a[10],i;
int *p;
printf("please input an array:\n");
for(i=0;i<10;i++)
scanf("%d",a[i]);
p=a;
printf("the order of this array is:\n");
for(i=0;i<10;i++)
printf("%d",*p++);
p=a;
for(i=0;i<5;i++)
{
int temp;
temp=*(p+i);
*(p+i)=*(p+(9-i));
*(p+(9-i))=temp;
}
printf("the right order of this array is:\n");
for(i=0;i<10;i++)
printf("%d",*p++);
}