CC · Lesson 6 of 8
Structs
Structs let you group related data together. They're C's version of objects — without the methods, inheritance, or any of the fun parts.
◆ Note
typedef struct { ... } Name; is the standard C idiom to avoid writing struct every time. Without it, you'd need to write struct Student everywhere. The typedef just creates an alias.
typedef struct { ... } Name; is the standard C idiom to avoid writing struct every time. Without it, you'd need to write struct Student everywhere. The typedef just creates an alias.