Stack Vs Heap

Some very good discussion here on stack vs heap. Read it entirely. Though it sounds theoretical they are very important when you get to real world problem solving

http://stackoverflow.com/questions/79923/what-and-where-are-the-stack-and-heap

And some more over here for stack overflow: http://stackoverflow.com/questions/26158/how-does-a-stack-overflow-occur-and-how-do-you-prevent-it