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

← Previous Next →

Discussion & Comments

No comments yet. Be the first to comment!