#include <stdio.h>
int main()
{
int t, a[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
int i, len = 10;
for (i = 0; i < len/2; ++i){
t = a[i];
a[i] = a[len-i-1];
a[len-i-1] = t;
}
for (i = 0; i < len; ++i){
printf ("%d ", a[i]);
}
printf ("\n");
return 0;
}
温馨提示:答案为网友推荐,仅供参考