May 2002
Beginner
320 pages
6h 18m
English
Astute readers will recall seeing something like the preceding definitions earlier in the book—for instance, in the arguments to main():
char* argv[]
Or the argument to UserWantsToContinueYorN():
char *theThingWeAreDoing
But what is the meaning of * in these definitions? In a definition, * should be read as “pointer to,” so we can read these two lines as “pointer to an array of characters” and “pointer to a character,” respectively.
Figure 13.3 shows how pointers “point” to storage on the heap.

* is also a prefix operator that can be used outside ...
Read now
Unlock full access