Program to Reverse a String using strrev( ) in C

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

 

main()
{


char s1[20];
printf(" Enter any string: ");
gets(s1);


strrev(s1);


printf(" Reverse of string: %s", s1);
getch();


}

Upload Content

Upload your original content. We will publish your material under your name on W3Professors after review.

Feedback

Without your feedback, such words as Improvement, Achievement and Success have no meaning for us.


W3Professors is only to provide online education. We do not warrant oraginality of any content. Whole content is uploaded by someone so if you feel that particular content is copied or not upto mark. You can click on Copied Content link. We will remove that content Immediately. You agree to have read and accept our Terms of Use and Privacy Policy. © Copyright 2008-2015 W3Professors.Com All Rights Reserved.

Designed and Maintained by Kanwer Technologies