#include<stdio.h>
void rev(char *);
main()
{
char ch[20];
printf("enter a string\n");
gets(ch);
rev(ch);
}
void rev(char *ch)
{
if(*ch)
{
rev(ch+1);
printf("%c",*ch);
}
}
----------------------------------------------------------------------------------------------------------------------------------------
op :
enter a string
praveen
neevarp
0 comments: