Home » C# Programming » Enumerations

Which of the following will be the correct output for the C#.NET code snippet given below? enum color : int { red = -3, green, blue } Console.Write( (int) color.red + ", "); Console.Write( (int) color.green + ", "); Console.Write( (int) color.blue );

Correct Answer: -3, -2, -1

← Previous Question Next Question→

More Questions from Enumerations

Discussion & Comments

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