//C program to reverse a string
//using recursion
#include <stdio.h>

//Function to print  reverse of
// passed string
void reverse(char*str)
{
if(*str)
{
    reverse(str+1);
    printf("%c",*str);
}    
}

//Driver code
int main() 
{
    char a[]="Shobhit Singh is a hero";
    reverse(a);
    return 0;
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: