Dynamic Memory Allocation and Pointers
Lecture no. 19 from the course: Introduction to C++: Programming Concepts and Applications
Taught by Professor John Keyser | 32 min | Categories: The Great Courses Plus Online Professional Development Courses
C++ provides different ways to control data storage in memory. Investigate dynamic memory allocation, which allows memory to grow and shrink with the demands of a program as it is running—as opposed to static memory, which is fixed at runtime. Practice managing memory in a 20-questions-type game and compare the advantages of allocating dynamic memory with pointers versus vectors.