Home » C# Programming » Enumerations

Which of the following statements is correct about the C#.NET code snippet given below? enum color : byte { red = 500, green = 1000, blue = 1500 }

Correct Answer: Since 500, 1000, 1500 exceed the valid range of byte compiler will report an error.

Next Question→

More Questions from Enumerations

Discussion & Comments

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