Princeton University
COS 217:  Introduction to Programming Systems

Precept 8:  C Dynamic Memory Management

Purpose

Present features of the C programming language that are particularly important and difficult to understand

Assignment 3 Discussion

Discuss Set_remove algorithm

Discuss SetIter data structures

Discuss SetIter_selectFirst, SetIter_selectNext

C Dynamic Memory Management

C Dynamic Memory Management Fundamentals

Trace each sequence showing stack and heap

Common C Dynamic Memory Management Errors

Trace each sequence showing stack and heap

The Usefulness of C Dynamic Memory Management

Dynamic memory management is also used to implement linked-node data structures

Copyright © 2002 by Robert M. Dondero, Jr.