Activity #12

Memory Allocation

Activity Type: drama

Discipline: programming

Area: Data Structures (CS2)

to show memory allocation and aliasing works

Time needed (estimate): 15 minutes

Have a set of "lockers" with "keys." As memory is allocated give a "key" to its location. Deallocation changes the "lock" so the key (address) no longer works. by giving two keys to one locker, you can also illustrate aliasing.

Materials needed: "lockers" and "keys"

Submitted by ?? (SIGCSE 97) on Wednesday, August 27, 1997 at 16:44:35 EDT/EST.

After you have tried this activity, you can add feedback on how it worked for you

You can also read the feedback of others who tried this activity

Return to the Activities List