C Program for REVERSE THE STRING
#include stdio.h>
#include conio.h>
#include string.h>
void main()
{
char name[30];
char *s;
int i,len;
clrscr();
printf("ENTER THE STRING: ");
gets(name);
len=strlen(name);
s=&name[len-1];
for(i=len-1;i>=0;i--)
{
putchar(*s);
s--;
}
getch();
}
OUTPUT :
ENTER THE STRING : KAMLESH
HSELMAK