1.

Correct output for the C#.NET code given below is? enum colors { red, black, pink } colors s = colors.black; type t; t = c.GetType(); string[] str; str = Enum.GetNames(t); Console.WriteLine(str[0]);

A. 0
B. Black
C. Red
D. 1
Answer» D. 1


Discussion

No Comment Found