Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started