[prev] 51 [next]

Pointers (cont)

Suppose we have a pointer p that "points to" a char variable c.

Assuming that the pointer p requires 2 bytes to store the address of c, here is what the memory map might look like:

[Diagram:Pic/pointer.png]