Examveda

What will be the output of the following C# code?
static void Main(string[] args)
{
    String c = "  Hello Computer ";
    String a = c.Trim();
    Console.WriteLine("\"" + s + "\"");
}

A. " Hello Computer "

B. "HelloComputer"

C. "Hello Computer"

D. Hello Computer

Answer: Option C


Join The Discussion

Related Questions on Arrays and Strings in C Sharp