C strrev()

C strrev():

String Functions are the built-in functions provided by C to operate and manipulate a string. C strrev() function reverses a string.

Syntax:

strrev (string )

Example:

#include<stdio.h>  
#include <string.h>   
 
void main()
{    
char str[10] = "Hello C.";  
printf("%s",strrev(str));    
}

Output

.C olleH