User-Defined Types

A programmer can define new types derived from the pre-defined types, or from types already defined in a program. These types may be unstructured (like the basic types) or structured. Unstructured, user defined types are known as enumerated types. Structured, user defined types are either arrays, structures or unions.

Enumerated types
Making a type definition
Arrays
Multi-dimensional arrays
Structures or Record Types
Union types
Making a type definition for user defined types
An example using structs in a C program

Exercises on this section.


Next - functions

Back to Contents page.