Another Look at Pointer Variables
While pointer variables have a special role, they too are just places in memory used to store a particular kind of data (in their case, the addresses of other pieces of data). Like ordinary variables, they have a size and a location in memory (Figure 9.7). And as with ordinary variables, you can use the address-of operator to find a pointer variable's address.
Figure 9.7. The value stored in a pointer variable (x and y) is the memory address of another variable (a and b).
Our next example shows you how these locations and sizes look on your machine. It makes use of the sizeof() function, ...
Get C Programming: Visual Quickstart Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.