What will be the output of the following C# code snippet? [code] class Program { static void Main(string[] args) { String

Thanh Thảo

New member
What will be the output of the following C# code snippet?
Code:
class Program
{
    static void Main(string[] args)
    {
        String c = "  Hello World  ";
        String s = c.Trim();
        Console.WriteLine("""+s+""");
        Console.ReadLine();
    }
}
A. ” Hello World ”
B. “HelloWorld”
C. “Hello World”
D. “Hello”
 

Tìm kiếm

Back
Top