views:

115

answers:

2

Possible Duplicate:
What and where are the stack and heap

Where is heap memory and stack memory stored?I mean where on the harddisk?what are the limits of their size?

+2  A: 

Perhaps this discussion will help http://stackoverflow.com/questions/79923/what-and-where-are-the-stack-and-heap

townsean
+2  A: 

You should consider memory and hard-disk as opposites.

Memory is the more expensive stuff that comes in sticks and is 1000x faster than hard disk.

I don't think you'll be able to "find" the heap and stack memory the way you want to. The OS sets this up by assigning some range of memory for each ( like 0x682CFF00 - 0x681CFF00 ).

bukzor