Discussion :: Enumerations - General Questions (Q.No.11)
Which of the following CANNOT be used as an underlying datatype for an enum in C#.NET?
Answer: Option C
No answer description available for this question.
|Jitendra said: (Jul 16, 2011)|
|Each enum type has a corresponding integral type called the underlying type of the enum type. This underlying type can represent all the enumerator values defined in the enumeration. An enum declaration may explicitly declare an underlying type of byte, sbyte, short, ushort, int, uint, long or ulong. Note that char cannot be used as an underlying type.|
|Chakry said: (Feb 14, 2014)|
|Not only char but also float, double, decimal and even bool value types are not accepted by Enum. Because enumerations are user defined integer data types. This is the answer.|
Post your comments here:
Email : (optional)
» Your comments will be displayed only after manual approval.