-strrev() is a string function that are able to reverse the given string.
-It is predefined in string.h header file.
syntax:
strrev(string)
program-
#include< stdio.h>
#include< string.h>
int main()
{
char s[20],s1[20];
int i=0,len=0;
//input of string
printf("Enter string\n");
scanf("%s",&s);
printf("String in reverse order is %s",strrev(s));
}
Enter string
Mystring
String in reverse order is gnirtsyM