HP C/iX Reference Manual (31506-90011)
Chapter 2 17
Lexical Elements
Identifiers
2. Arrays — Arrays are collections of homogeneous objects. C arrays can be
multidimensional with conceptually no limit on the number of dimensions.
c. Unions — Unions, like structures, can hold different types of objects. However, all
members of a union are "overlaid"; that is, they begin at the same location in
memory. This means that the union can contain only one of the objects at any given
time. Unions are useful for manipulating a variety of data within the same memory
location.
2. Function Type
A function type specifies the type of the object that a function returns. A function that
returns an object of type T can be referred to as a "function returning T," or simply, a T
function.
3. Incomplete Type
The void type is an incomplete type. It comprises an empty set of values. Only pointers
and functions can have void type. A function that returns void is a function that returns
nothing. A pointer to void establishes a generic pointer.
Figure 2-1 illustrates the C types.
Figure 2-1. C Types