Question: how are enums stored in memory?
Answer: An enumeration is an interpretation of a numeric datatype inferred by the compiler (usually an integer, but you can change it). ... From the memory perspective, the enumeration is stored in a value of integral type capable of containing all the values you have declared.