Examveda

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

A. a

B. b

C. ab

D. abc

Answer: Option D


This Question Belongs to C Sharp Programming >> Miscellaneous In C Sharp

Join The Discussion

Related Questions on Miscellaneous in C Sharp