Welcome..!!

Please visit http://csprograms.in/ for more Computer Science programs.

Wednesday 14 March 2012

14. C++ program to reverse the string .


# include < iostream>
# include < string>
int main()
{
char str1[50], str2 [50];
cout << “Enter the string:” ;
cin >> str1;
str2 = strrev ( str1);
cout << “strrev (str1) : “< < str2;
return 0;
}

No comments:

Post a Comment