This module explores how C++'s use of pointers and memory allocation differs from C.
While pointers are used in much the same way in both languages, C++ introduces some interesting new features.
In addition, C++ allows you to control the allocation and deallocation of a system-provided memory pool.
This feature is particularly important for using dynamic data structures such as lists and trees.
This module discusses:
How to create
const pointer arguments to functions
How to create aliases for variables using reference declarations
How C++ implements call-by-reference using reference declaration
How to use a generic pointer type
How to use
delete to manipulate free store memory
How to create dynamically allocated multidimensional arrays
At the end of the module, you will be given the opportunity to take a quiz covering these topics.