By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,435 Members | 1,493 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,435 IT Pros & Developers. It's quick & easy.

regarding heap memory area of a process memory

P: n/a
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???

Dec 17 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
sa*****@yahoo.co.in wrote:
>
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

--
pete
Dec 17 '06 #2

P: n/a
In article <11**********************@f1g2000cwa.googlegroups. com>,
<sa*****@yahoo.co.inwrote:
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.
--
Okay, buzzwords only. Two syllables, tops. -- Laurie Anderson
Dec 17 '06 #3

P: n/a
sa*****@yahoo.co.in writes:
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.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Dec 17 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.