I'm reading this magnificent book and I came across a paragraph that I do not understand. It's the last paragraph on page 39.
"Enumerations provide a convenient way to associate constant values with names, an alternative to #define with the advantage that the values can be generated for you. Although variables of enum types may be declared, compilers need not check that what you store in such a variable is a valid value for the enumeration. Nevertheless, enumeration variables offer the chance of checking and so are often better than #defines. In addition, a debugger may be able to print values of enumeration variables in their symbolic form. "
Can someone rephrase this for me? Thanks a lot.