live user chart 221 users on this page
0 views

Verified Question

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 ]);

Answer is "Red"

Groww Referal

Earn ₹700 on signup and invest in Google

2 Answer and explanations

You don't need to login to post your comment

334

I'm in exam, can any one give the solution for this question

answered via iOS
Andrea
   Andrea
🌐 India
1132

Thank you so much for the answer

answered via iOS
Kimberly
   Kimberly
🌐 India

Post your answer

You don't need to login to post answer