C strrev() Function


C strrev() function reverses a given string.

It is the non-standard function that may not available in the standard library in C.

 string reverse

Syntax:

Char * strrev(char * string);

Example:

#include <stdio.h>
#include <string.h>

void main () {
    char str1[30] = "Hello";
	printf("Reverse of String str1: %s\n", strrev(str1));
}



OnlineTpoint is a website that is meant to offer basic knowledge, practice and learning materials. Though all the examples have been tested and verified, we cannot ensure the correctness or completeness of all the information on our website. All contents published on this website are subject to copyright and are owned by OnlineTpoint. By using this website, you agree that you have read and understood our Terms of Use, Cookie Policy and Privacy Policy.