Unscoped Enumeration in C++ | Learn CPlusPlus
Unscoped Enumeration in C++ standard does not specify which specific integral type should be used as the underlying type. Most compilers will use type int as the underlying type, unless a larger type is required to store the enumerator values. If you want to explore more about Unscoped Enumeration in C++, take a look at this blog.