logo CodeStepByStep logo

reverse

Language/Type: C arrays traversals

Write a function named reverse that accepts an array of integers and a length as parameters and modifies the array to be in reverse order. For example, if the array a stores {10, -2, 33, 55, 9}, the call of reverse(a, 5) should modify it to store {9, 55, 33, -2, 10}.

Function: Write a C function as described, not a complete program.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.