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
int main()
#include
{
char str[100];
printf("Please, Enter the String : ");
gets(str);
puts(strrev(str));
return 0;
}
Download the C-Program file of this Program.
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>