Step Into Labs

Step Into C · Lesson 12 · Modeling Data

Structs

Grouping data, . and ->, padding and alignment, arrays of structs.

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.

A struct bundles several variables, called members or fields, into one type:

In this lesson

Missions

  1. A point
  2. Move it
  3. Mind the gap
  4. Biggest file