MCQs>IT & Programming>C#>What is the output of following program? class Program { public enum Colors { Red = 1, Green = 2 } private static void Main() { Colors c = 0; Console.WriteLine(c); } }
C# MCQs
What is the output of following program? class Program { public enum Colors { Red = 1, Green = 2 } private static void Main() { Colors c = 0; Console.WriteLine(c); } }
Answer
Correct Answer: Prints 0 in console
Explanation:
Note: This Question is unanswered, help us to find answer for this one