Question: Part C. String Manipulation: Reverse. 1. Write a function called reversestr that accepts as a parameter a char array (or char pointer) and returns a

Part C. String Manipulation: Reverse. 1. Write a function called reversestr that accepts as a parameter a char array (or char pointer) and returns a void type. The function reverses the contents of the array (or string) being passed. Example: the string "Hello" will be reversed to olleH". You have to be careful about the '\o' symbol to keep it at the end of the array and watch out for odd and even length of strings. 2. Test your function and display the string (array) before and after it is reversed. IMPORTANT: The function does NOT print the string in reverse; it actually reverses it in the memory
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
