Step Into Labs

Step Into C · Lesson 13 · Modeling Data

typedef, enum & union

Naming types the Windows way, enumerations, unions and type punning.

Part of Step Into C. The full lesson, its missions and the real compiler and debugger are in the course. Try a free lesson first to see how it works.

typedef creates an alias for an existing type. It does not create a new type. It just gives you a shorter or more meaningful name.

In this lesson

Missions

  1. Windows-style typedef
  2. Enumerations
  3. One value, four bytes
  4. Status codes