regarding heap memory area of a process memory

S

sam_cit

Hi,

It is very much known that dynamically allocated memory is stored in
heap and stays till it is deallocated or till the program terminates. I
was just wondering in what way has this got to do with Heap name, is
there any relation with heap data structure???
 
P

pete

Hi,

It is very much known that dynamically allocated memory is stored in
heap and stays till it is deallocated
or till the program terminates. I
was just wondering in what way has this got to do with Heap name, is
there any relation with heap data structure???

A heap is something less rigidly organized than a stack.

Followup To: comp.programming
 
W

Walter Roberson

It is very much known that dynamically allocated memory is stored in
heap and stays till it is deallocated or till the program terminates.

Only in some implementations. Other implementations do it differently.
C itself places no restrictions that -require- using a heap: all that
it requires is that there be -some- way of getting memory parceled out
on demand. It could even be memory pre-allocated to the process instead
of memory that rows with need.
 
K

Keith Thompson

It is very much known that dynamically allocated memory is stored in
heap and stays till it is deallocated or till the program terminates. I
was just wondering in what way has this got to do with Heap name, is
there any relation with heap data structure???

They're two different things, but your question would be more
appropriate in comp.programming.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top