Vidyalelo
C# Programming · Q190

Classes and Objects in C Sharp

Programming · C# Programming · question 190

Q190

What will be the output of the following C# code? 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
Answer
D.
1

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board