Vidyalelo
C# Programming · Q133

Arrays and Strings in C Sharp

Programming · C# Programming · question 133

Q133

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"
Answer
D.
Hello Computer

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board