Examples & Exercises:

  1. Using Dynamic Memory Management Functions; http://siber.cankaya.edu.tr/OperatingSystems/cfiles/code45.c code45.c
  2. Dangling Pointers;
    char *str;
    str = malloc(sizeof(char) * 4)
    free(str);
    strcpy(str, "abc");
    
  3. A Problem Child; http://siber.cankaya.edu.tr/OperatingSystems/cfiles/code46.c code46.c.
Cem Ozdogan 2010-05-11