What will be the output of the following C# code snippet?
class Program
{
static void Main(string[] args)
{
char []chars = {'a', 'b', 'c'};
String s = new String(chars);
Console.WriteLine(s);
Console.ReadLine();
}
}
class Program
{
static void Main(string[] args)
{
char []chars = {'a', 'b', 'c'};
String s = new String(chars);
Console.WriteLine(s);
Console.ReadLine();
}
}
A. a
B. b
C. c
D. abc
Answer: Option D
Join The Discussion