[prev] [index] [next]

typedef and struct (cont)

Note: structures can be defined in two different styles:

struct Point0 {float x; float y;};

// or

typedef struct { float x; float y; } Point1;
// which would be used as
struct Point0 anumber;
Point1        anothernumber;

The definitions produce objects with identical structures.