We can explicitly specify the type of enumerators. By default, it’s
int however, we can change the type being used.
We can use integral types such
long int, or,
long long int. Read msdn.microsoft.com for the details. Read the post Check types to see as to how we can check at compile time if a type is integral.
We can independently use the scoped property and the explicit type specification of an enumeration. Dependent on the base types, the enumerations have different sizes.
Below is an example of the implementation of scoped enumerations using