Pointers

A pointer type variable holds the address of a data object or a function. A pointer can refer to an object of any one data type; it cannot refer to a bit field or a reference. A pointer is classified as a scalar type, which means that it can hold only one value at a time.

Some common uses for pointers are:

C The remainder of this section pertains to C only.

You cannot use pointers to reference objects that are declared with the register storage class specifier.

Two pointer types with the same type qualifiers are compatible if they point to objects of compatible types. The composite type for two compatible pointer types is the similarly qualified pointer to the composite type.

Related References

IBM Copyright 2003