Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Reverse a string with strrev() function in C Language



In this C program we will store a String in memory and Reverse it with the help of strrev()fuction. The String will be given by the User.color>

input:

The String.

output:

The Reversed String will be printed on the screen.

CODE---->



#include
#include
int main()
{
char str[100];
printf("Please, Enter the String : ");
gets(str);
puts(strrev(str));
return 0;
}


Download the C-Program file of this Program.

Don't just read, run on your pc !!!color>


RESULT :color>



Please, Enter the String : ProgramJoy.blogspot.com
moc.topsgolb.yoJmargorP

--------------------------------
Process exited after 34.15 seconds with return value 0
Press any key to continue . . .


Images for better understanding : color>



This post first appeared on ProgramJoy.blogspot.com, please read the originial post: here

Share the post

Reverse a string with strrev() function in C Language

×

Subscribe to Programjoy.blogspot.com

Get updates delivered right to your inbox!

Thank you for your subscription

×