text: Print reverse of a string using recursion | C program to reverse a string using recursion ; Function to print reverse of the passed string ; Driver program to test above function
code: # include <stdio.h> NEW_LINE void reverse ( char * str ) { if ( * str ) { reverse ( str + 1 ) ; printf ( " % c " , * str ) ; } } int main ( ) { char a [ ] = " Geeks ▁ for ▁ Geeks " ; reverse ( a ) ; return 0 ; }