Animal, Vegetable or Mineral

The standard way to learn about the heap is to use malloc and linked lists. And everyone’s favourite first program on that topic is this one, at least it ought to be, or it was, or maybe it was just me?

download