#include<string.h>
main()
{
char s[50];
printf("enter a string \n");
gets(s);
strrev(s);
printf("the reversed string is\n");
puts(s);
}
Note: Need to be arranged in compiler after copied
OutPut:
enter a string
EVIL
the reversed string is
LIVE