Question: Write a program to reverse a string entered by the user. Programmust: Do not use library function strrev OR Recursion. Do not use
Write a program to reverse a string entered by the user. Programmust:
• Do not use library function “strrev” OR “Recursion”.
• Do not use strlen.
• Must define two functions; one for reversing the string andsecond for finding string length. Pointers for the string enteredare passed to these functions as an argument.
o int string_length (char * myString)
o void reverse (char * myString)
• The reverse function must print the actual string and thereversed string.
Step by Step Solution
3.52 Rating (159 Votes )
There are 3 Steps involved in it
solution include int stringlengthchar myStringfunction to calculate length of myString char ch myStr... View full answer
Get step-by-step solutions from verified subject matter experts
