Radical Developers welcomes all the visitors to be a member of the team. Come join us. Its all about open-source concept.
All Programs are written and tested in MacOS X, Unix, Linux and may not match with the outputs of Turbo C++ in Windows
Pages
Updates
About Us
Sunday, January 9, 2011
Write a program to reverse a string to another string using strrev().
Source Code :
#include<stdio.h>
void main()
{
char str1[20];
clrscr();
printf("\nEnter a String : ");
gets(str1);
strrev(str1);
printf("\nReversed String : %s",str1);
getch();
}
Output :
Enter a String : apple
Reversed String : elppa
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment