Objective
Implement a function that reverses the order of the first n elements of an integer array in place, without allocating a second array.
Steps
$ int a[] = {1, 2, 3}; reverse_int(a, 3);
3 2 1
$ int a[] = {1, 2, 3, 4, 5}; reverse_int(a, 3);
3 2 1 4 5
$ int a[] = {7, 8, 9}; reverse_int(a, 0);
7 8 9
Expected files
Allowed functions
None. Write every helper yourself.
Allowed headers

Objective
Implement a function that reverses the order of the first n elements of an integer array in place, without allocating a second array.
Steps
$ int a[] = {1, 2, 3}; reverse_int(a, 3);
3 2 1
$ int a[] = {1, 2, 3, 4, 5}; reverse_int(a, 3);
3 2 1 4 5
$ int a[] = {7, 8, 9}; reverse_int(a, 0);
7 8 9
Expected files
Allowed functions
None. Write every helper yourself.
Allowed headers

Tests
Run the tests to grade your code