How To reverse the words of a string
Murali Reddy
string str = "1234";Char[] chaArray=str.ToCharArray();Array.Reverse(chaArray);string st2 = new string(chaArray);
public class Sample { public void m1() { string str = "Plant An Idea"; string rev = ""; string[] strArr = str.Split(' '); for(int i=strArr.Length-1;i>=0;i--) { rev = rev + strArr[i] + " "; } Console.WriteLine(rev); }}