int* p = a;
int* q = a + sizeof(a) / sizeof(a[0]) - 1;

while (p != q) {
 int t = *p;
 *p++ = *q;
 *q++ = t;
}