Actions

EmSys

C - Structures5

From EdWiki

Structures ...

Structures can be nested

struct RECT {
    struct POINT top;
    struct POINT bottom;
};

The RECT structure contains two POINT structures. If we declare screen as

struct RECT screen;

Then screen.top.x refers to the x coordinate of the top member of screen.