What will be the output of the following C# code snippet? [code] static void Main(string[] args) { string h = "i lovelife";

What will be the output of the following C# code snippet?
Code:
 static void Main(string[] args)
 {
     string h = "i lovelife";
     string h1 = new string(h.Reverse().ToArray());
     Console.WriteLine(h1);
     Console.ReadLine();
 }
A. efil evoli
B. lifelove i
C.
Code:
efilevol i
D. efil evol i
 

Tìm kiếm

Back
Top