Pointers and Memory Leaks
CS2 / C++
The goal of the activity is to review and reinforce pointers and C++ memory management before building upon those concepts in later activities. Students will analyze and draw accurate sketches of variables, objects, and pointers; review the distinction between variable and object; review the rules of C++ manual memory management; and diagnose and correct memory management bugs.
This activity was developed with NSF support through IUSE-1626765. You may request access to this activity via the following link: IntroCS-POGIL Activity Writing Program.
- Level: Undergraduate
- Setting: Classroom
- Type: Learning Cycle
- Discipline: Computer Science
- Course: CS2 / C++
- Keywords: pointers, variables, objects, memory management, memory leaks
How to Cite
Copyright of this work and the permissions granted to users of the PAC are defined in the PAC Activity User License.