about account add arrow-down arrow-left arrow-right arrow-up back-arrow register-arrow book-mobile book categories chat-bubble-mobile chat-bubble close college contact-us credit-card drag email-square facebook-mobile facebook-square facebook faq film history home load modal-error person pinterest-square play-mobile play queue remove resume search share show star tick trailer trash twitter-mobile twitter-square twitter university warning warning youtube-square open-eye close-eye promo-tag tag check info info active
19

Dynamic Memory Allocation and Pointers

Lecture no. 19 from the course: Introduction to C++: Programming Concepts and Applications

Dynamic Memory Allocation and Pointers

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.

Reviews