A pointer is a variable. Therefore, it has a type and an identifying name. It is distinguished as a pointer at declaration with the * notation.
The syntax for a pointer is type * identifier;, where type is either an intrinsic type or a custom type, * indicates a pointer to the given type, and identifier is the name of the pointer variable. The actual type of a pointer variable is not just type, but type*. This is what distinguishes a direct variable from an indirect variable.
A pointer must have a type for the thing it points to. A pointer type can be any intrinsic type (such as int, long, double, char, byte, and so on) or any already-defined custom type (such as an array, struct, typedef, and so on). The pointer's value (an address) can be any named location (the variable identifier) that has that type. We will see why this is essential when we access the value at the pointer's address.
An example of an integer pointer...