Enums & typedef
Improve readability of states, modes and configuration types.
CORE IDEA
Enums express named choices
ENGINEERING VIEW
typedef creates an alias
WHAT TO WATCH
Keep names meaningful
REMEMBER
Do not assume enum storage width without checking the implementation
Engineer’s checklist
- Enums express named choices
- typedef creates an alias
- Keep names meaningful
- Do not assume enum storage width without checking the implementation
// V1.4 content area
// Next iteration: full examples, compiler output and exercises.