perform string reverse operation

Raj_Chennai
Posted by Raj_Chennai under C# category on | Points: 40 | Views : 1220
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace stringReverseOperation
{
class reverseOperation
{
static void Main(string[] args)
{
string s1 = "Welcome To the world of dot net";
char[] charArray = s1.ToCharArray();
Array.Reverse(charArray);
Console.WriteLine(charArray);
Console.ReadLine();
}
}
}

Comments or Responses

Login to post response