1.

Which of the following is the correct output for the C#.NET code snippet given below? enum color { red, green, blue } color c = color.red; Type t; t = c.GetType(); string[ ]str; str = Enum.GetNames(t); Console.WriteLine(str[ 0 ]);

A. red
B. 0
C. 1
D. -1
E. color.red
Answer» B. 0


Discussion

No Comment Found

Related MCQs