Unit 4: Dynamic Memory Allocation
We will now learn about dynamic memory allocation. Frequently, we know neither the size of the data nor the Data Structure when implementing programs and Data Structures. By learning about dynamic memory allocation, you will understand how to request memory during runtime. We will also discuss the risks of memory allocation and de-allocation, learning about memory leaks and dangling pointers, among other potential drawbacks. You will learn how to prevent these risks by utilizing the full capabilities of the C/C++ language to increase memory use efficiency.
Completing this unit should take approximately 2 hours.
4.1: C++ Memory Allocation
4.2: C Memory Allocation
4.3: Memory Fragmentation
4.4: C/C++ Based on "Unsafe" Types
Unit 4 Assessment
- View Receive a grade