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

Tiên Hương

New member
What will be the output of the following C# code snippet?
Code:
 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
 

Tìm kiếm

Back
Top