MCQs>IT & Programming>C#>Consider the following C# code, What output will be printed on the console? enum Color: int { Blue, Red, Green, Yellow, Orange } int color = (int)Color.Green; Console.WriteLine('{0} and {1}', color, Color.Yellow);
C# MCQs
Consider the following C# code, What output will be printed on the console? enum Color: int { Blue, Red, Green, Yellow, Orange } int color = (int)Color.Green; Console.WriteLine("{0} and {1}", color, Color.Yellow);
Answer
Correct Answer: 2 and Yellow
Explanation:
Note: This Question is unanswered, help us to find answer for this one