Vidyalelo
C# Programming · Q129

Arrays and Strings in C Sharp

Programming · C# Programming · question 129

Q129

What will be the output of the following C# code snippet? static void main(String args[]) char chars[] = 'x', 'y', 'z'; String s = new String(chars); Console.WriteLine(s);

A.
x
B.
xy
C.
z
D.
xyz
Answer

Answer: Option D

Solution

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