Home » C# Programming » Enumerations

Which of the following is the correct output for the C#.NET code snippet given below? enum color: int { red, green, blue = 5, cyan, magenta = 10, yellow } Console.Write( (int) color.green + ", " ); Console.Write( (int) color.yellow );

Correct Answer: 1, 11

← Previous Question Next Question→

More Questions from Enumerations

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion