
Implement a function that reverses the order of the first n elements of an integer array in place, without allocating a second array.
int a[] = {1, 2, 3}; reverse_int(a, 3);3 2 1int a[] = {1, 2, 3, 4, 5}; reverse_int(a, 3);3 2 1 4 5int a[] = {7, 8, 9}; reverse_int(a, 0);7 8 9reverse_int.c<stddef.h>defines size_t
Run the tests to grade your code
Implement a function that reverses the order of the first n elements of an integer array in place, without allocating a second array.
int a[] = {1, 2, 3}; reverse_int(a, 3);3 2 1int a[] = {1, 2, 3, 4, 5}; reverse_int(a, 3);3 2 1 4 5int a[] = {7, 8, 9}; reverse_int(a, 0);7 8 9reverse_int.c<stddef.h>defines size_t
Run the tests to grade your code
Memory will appear here