Write a bounded in-place reversal using pointers

Write void reverse(int *a, size_t n) using pointer traversal and a temporary int. It must reverse exactly n elements in place and do nothing for n = 0 or n = 1; for n = 0 allow a = NULL. For n > 0 the caller provides n live ints. Explain why your code never forms a pointer before the first element. Supply a driver reading n in 0..8 and then n representable ints, printing one space-separated line, including a blank line for zero elements.


