Which of the following is true about below given code?
enum WeekDays : Float
Sunday = 10.0,
Tuesday = 10,
Sunday,Mondays are float values,remaining are integers.
Sunday only float,remaining are considered as integer constants.
Sunday to Wednesday becomes float.
An Enums underlying members cannot be declared with Floating point data types.
underlying values of enums should be integral datatypes but here float is not a integral type,so casting is not possible.
Back To Top