![]() |
![]() |
![]() |
![]() |
![]() |
|
Of course, a pointer variable also can identify a chunk of memory that contains the address of a structure object, such as a trade:
tptr refers to the address of the byte where a
pointer to a trade object begins; here,
the value of tptr is 288, an address
|
|
v
tptr
----*--------*--------*--
|00000001|00100000|
---*--------*--------*-----
24 25 26 27
-----------------
|
| The address refers to the location where memory
| is allocated for a trade object; here,
| the value of *tptr is a trade object
| stored in a series of bytes starting at address
| 288
|
| price shares
| | |
v v v
--------------- -------
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
| | | | | | | | | | | | |
-*-*-*-*-*-*-*-*-*-*-*-*-*-
^ ^
| |
288 296