Objectives
- Explain what a pointer is.
- Declare and initialize/assign a value to a pointer variable.
- Use & to get the address of a variable.
- Use the dereference operator * to get the data pointed to by a pointer.
- Explain the two different uses of the * (asterisk).
- Use the new operator to dynamically allocate memory.
- Use the delete operator to free dynamically allocated memory.
- Use the delete[] operator to free dynamically allocated arrays memory.
- Explain what a memory leak is.