Activity Type: drama
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.
You can also read the feedback of others who tried this activity