[Solved] Which data type the enumerations are stored by the compiler? [closed]


Enum default uses int datatype for storing value

you can set type for enum and override default datatype, but datatype must be of integral numeric type

Example :

enum Months : byte { Jan, Feb, Mar, Apr, May, Jun,
                 Jul, Aug, Sep, Oct, Nov, Dec }; 

4

solved Which data type the enumerations are stored by the compiler? [closed]