Dynamic allocation & link lists (12)


Administrivia

Practice Web Page - http://www.cs.tau.ac.il/~efif/courses/Programming_Fall_04


Memory allocation


Managing allocated memory


Allocating memory for charcters


Allocating memory for integers


Accesing allocated memory


Verifying allocated memory


Freeing memory


Recycling memory


A thief with a key is still a thief


Keeping track


Reallocating memory


example


Prototype


Pointer safety


sizeof


Linked list


Reverse


Reverse


List struct


Doubly-connected linked list


practices prev top next
Maintained by Efi Fogel. Last modified: January 28 2004.