42.5k views
2 votes
[c++] Write a recursive function takes a word string as input argument and reverse the word. Print out the results of recursive calls. Also write a main program accepts input from the user and then call the recursive function.

Example:
Enter a word: hello
h
eh
leh
lleh
olleh ...?

User Kadeen
by
8.5k points

2 Answers

3 votes

Answer:

just download a backwards typing filter

Step-by-step explanation:

retlif gnipyt sdrawkcab a daolnwod tsuj

User Piers Myers
by
9.3k points
3 votes
I will try to give you the best answer I can possibly come up with.
The easy way to get it is to store it into an array of strings and print the array of string backwards. You can do that by starting at the last part of the array down to the first letter.
User Leacroft
by
8.5k points