[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 ...?

Respuesta :

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.