 |
Print reverse of a string using recursion - GeeksforGeeks
Write a recursive C function to print reverse of a given string. Program: # include /* Function to print reverse of the passed string */ void reverse(char *str) { if(*str) { reverse(str+1); printf("%c", *str); } } /* Driver program to test above function
www.geeksforgeeks.org |
 |