Chapter 5. Pointers, Arrays, and Structures
The sublime and the ridiculous are often so nearly related that it is difficult to class them separately.
For a type T, T
* is the type “pointer to T.” That is, a variable of type T
* can hold the address of an object of type T. For example:
char c = 'a'; char* p = &c; // p holds the address of c
Unfortunately, pointers to arrays and pointers to functions need a more complicated notation:
int* pi; // pointer to ...