Lecture overview -- Keyboard shortcut: 'u'  Previous page: Arrays and Pointers: Examples -- Keyboard shortcut: 'p'  Next page: Structures: Examples -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Alphabetic index  Help page about these notes  Course home    From C to C++ - slide 16 : 29

Structures and Unions

A struct aggregates fields of different types to a new composite type

A union is the poor man's - the C programmer's - way of specializing a struct in two or more directions

The C struct is the major starting point of the C++ abstraction mechanisms