MCQs > IT & Programming > C# > What is wrong with this code: public enum @enum : ushort { Item1 = 4096, Item2 = 8192, Item3 = 16384, Item4 = 32768, Item5 = 65536, }

C# MCQs

What is wrong with this code: public enum @enum : ushort { Item1 = 4096, Item2 = 8192, Item3 = 16384, Item4 = 32768, Item5 = 65536, }

Answer

Correct Answer: Constant value '65536' cannot be converted to a 'ushort'

Explanation:

Note: This Question is unanswered, help us to find answer for this one

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it