+ 1
The stack and the heap exist on RAM..isn't it ? And we use the heap just when we are not sure about the size of input ?
7 Respostas
+ 3
there are no check mark of best answer in my app..maybe because i use the c++ app..so the features is limited
+ 2
Could be RAM or the OS can swap program memory to disk under certain conditions.
stack is allocated once during runtime and remains for the lifetime of the process. When you allocate memory procedurally it is done on the heap and is removed from the heap when it is deallocated.
+ 2
Would you be so kind as to mark my comment as the answer? It's the check mark next to my comment. Thank you.
+ 2
which check mark ? i've already put like for your comment
+ 2
There should be a check mark under the Up Vote/Down Vote to the left that marks it as "best answer".
+ 2
Thank you, you've actually answered a question on another thread about why check marks aren't seen by all. I'm using the "complete" version.
+ 1
And the answer achievement has unlocked for me :)