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

1 Expert Approved Answer
Step: 1 Unlock

solution include int stringlengthchar myStringfunction to calculate length of myString char ch myStr... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Electrical Engineering Questions!