But in CS255, we will use a lot of references
So I want to explain the (program) reference in greater detail before we move on.
|
The reference/pointer is represented in the computer by the value of the address (location) of the memory where the pointer is pointing at
Examples:
Reference to the memory location 1 | Reference to the memory location 4 |
---|---|
|
|
Example:
|