C++ Ch.9 Pointers Flashcards
Each byte in memory is assigned a unique _________.
Address
The ________ operator can be used to determine a variables address.
& (Address Operator)
_________ variables are designed to hold addresses.
Pointer
The ________ operator can be used to work the variable a pointer points to.
Indirection
Array names can be used as ________, and vice versa.
Pointers
Creating variables while a program is running is called _________.
Dynamic memory allocation
The _______ operator is used to dynamically allocate memory.
new
Under old compilers, if the new operator cannot allocate the amount of memory requested it returns ______.
null
A pointer that contains the address 0 is called a(n) ________.
null pointer
When a program is finished with a chunk of dynamically allocated memory, it should free it with the _______ operator.
delete
You should only use pointers with delete that were previously used with ________.
new
Each byte of memory is assigned a unique address. (T/F)
True
The * operator is used to get the address of a variable. (T/F)
False
Pointer variables are designed to hold addresses. (T/F)
True
The & symbol is called the indirection operator. (T/F)
False