#include <stdio.h> int main() { int a[10] = {3, 7, 9, 11, 0, 6, 7, 5, 4, 2}, t, i; int *p = a, *q = &a[9]; while (p < q) { t = *p; *p = *q; *q = t; p++; q--; } p = a; for (i = 0; i < 10; i++) printf("%3d", *(p + i)); return 0; }