Hi Guest

MobileUser

1 HomePage 1 Jobs 1 WalkIn 1Articles  

Cat Exam

 :) Latest Topic
AJAX
VB.NET
SQL Query
UDDI
CLASS
JavaScript Questions
SharePoint Interview
SilverLight
WCF
general knowledge
 ASP.NET
 :) Hot Jobs
 
 :) Latest Articles


  

 
Dhoti Patiyala


reverse a string
Question Posted on 07 Jul 2011

Home >> DotNet >> ASP.NET >> reverse a string




Below is the function to reverse a given string with the help of array
public static string Reversestring(string StrVal)
{
  int len = StrVal.Length;
  StringBuilder revStr = new StringBuilder();
  for (int i = len - 1; i >= 0; i--)
   {
    revStr.Append(StrVal[i]);
    if (i != 0)
    {
     revStr.Append('X');
    }
   }
   return revStr.ToString();
}
0
0



 
 Input Your Comments Or suggestions(If Any)
 Name
 Email(optional)
 Comments


Other Important Questions
Use of Calendar control in dotnet with code
How to improve Front End UI performance of dotnet web application?
File upload in dotnet
reverse a string
function of garbage collector






 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |