Skip to main content

Section 18.14 Vocabulary

address-of operator:
The & symbol when used to the left of a variable name and not as part of a variable or parameter declaration.
aggregation
A has-a relationship between objects where there is no ownership. The aggregated object may or may not exist; it may be shared by multiple aggregating objects; it may persist after the aggregating object is gone.
dereference
To take a pointer (memory address) and go to the think it points at. Performed using the * or -> operator.
pointer
A variable that holds a memory address is known as a β€œpointer” because it β€œpoints” at that memory, allowing us to use the pointer to access the memory.
nullptr
A symbol that stands for the memory address 0. 0 is never is a valid address for a program to try to access. So setting pointers to store nullptr when they have no valid value to point at makes it easy to check if the pointer is valid or not.
You have attempted of activities on this page.