Asp.Net,C#,JavaScript,Sql Server
Think More And Get More
Home
Interview Questions
Blogegr Tricks & Tricks
Method & Functions
Copyrightpolicy
Souce Code
Thursday, 17 May 2012
In C# Reverse String Program
public string reverse(string str)
{
int len=str.length;
Char[] arr=new Char[len];
for(int i=0;i<len;i++)
{
arr[i]= str[len-1-i];
}
return new string(arr);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment