?
What will be the output of the following C# code snippet?
What will be the output of the following C# code snippet?
static void Main(string[] args)
{
string h = "i lovelife";
string h1 = new string(h.Reverse().ToArray());
Console.WriteLine(h1);
Console.ReadLine();
}
static void Main(string[] args)
{
string h = "i lovelife";
string h1 = new string(h.Reverse().ToArray());
Console.WriteLine(h1);
Console.ReadLine();
}
Join the Discussion
Login to post a comment or share your explanation.
Login