int a[]={1,2,4,6,7,0};
int n=sizeof(a)/sizeof(int);
//翻转
for (int i=0;i<n;i++)
{
if (i<n-1-i)
{
int s=a[i];
a[i]=a[n-1-i];
a[n-1-i]=s;
}
}
for (int i=0; i<n; i++)
{
printf("%d",a[i]);
}