3

Possible Duplicate:
What is the origin of the term “heap” for the free store?

Why is the heap called the heap? I mean the bit of memory which we dynamically allocate bits of.

Community
  • 1
  • 1

1 Answers1

0

I don't have a citation for this, but I've always believed it derives from "a place to put stuff; a bit like the stack only less organised".

A stack has strict rules about where you add and remove things, but a heap doesn't.

RichieHindle
  • 258,929
  • 46
  • 350
  • 392