C Program for the reverse of a string
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char s[20];
int n;
clrscr();
printf("enter any sring\n");
gets(s);
printf("%s",strrev(s));
getch();
}
OUTPUT
enter any sringHELP
PLEH
------------------------------------------------------------------------------------------------------------