Question: what is difference between structure and enumeration?
Answer: Like a class, a struct can have member functions and template parameters and so on. One of the vital difference between structs and enums is that an enum doesn't exist at run-time. ... Your struct declaration is invalid. In plain C struct are so called record types, they contain a set of values (each with it's own type).