C - Structures2

From EdWiki

Structures ...

struct POINT {
   int x;
   int y;

Here the tag POINT names the structure.

A structure declaration that is not followed by a list of variables reserves no storage; it merely describes a template or the shape of a structure.


struct POINT xy;

Defines a variable xy which is a structure of type struct POINT.

A structure declaration defines a type.