Here are some reading and other examples I have found for HEAP using google: http://www.cprogramming.com/tutorial/computersciencetheory/heap.html http://cplus.about.com/od/glossar1/g/heap.htm
I even found a link from this site: Heap Memory in C Programming
Take in mind it took me two minutes to find all of these links. I've skimmed through them and it looks like all of them answer your questions, but if they don't then I suppose you do have good reason to ask this question. Still, google is your friend.