Actions

EmSys

C - Arrays of Structures

From EdWiki

Arrays of Structures

The structure declaration

struct Month {
    char* name;
    int days;
}MonthTab[NMONTHS];

Declares a structure type Month, defines an array MonthTab of structures of this type, and sets aside storage for them.

Each element of the array is a structure.

This could also be written as