Normally we write FOR loop logic to reverse a string, may be because we dont explore the in-built functions of the language.
char [] strArray = TextBox1.Text.ToCharArray();
Array.Reverse( strArray );
string ReverseString = new string( strArray );
Label1.Text = ReverseString;
Wednesday, December 31, 2008
Reverse String in C#
Labels:
C#,
C# Interview Questions,
Vijaya Kadiyala
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment