I have couple of questions.
My friend put across this question to me asking whether the following piece of code would result in an infinite loop...
while(1)
{
int i;
}
I guess it doesnt result in an Infinite loop but instead keeps on getting executed until the entire memory gets exhausted.. Could I please get a validation??
And
Could i get to know what heap memory means?? Does that refer to data segment? (if yes could i plz get to know how size of data segment is determined)??
|
Go4Expert Founder
|
![]() |
| 25Sep2005,22:54 | #2 |
|
First of all I would like to welcome you to go4expert programming forum
Code:
while(1)
{
int i;
}
Quote:
Originally Posted by SunilC Quote:
Originally Posted by SunilC Let A and B be nodes of a heap, such that B is a child of A. The heap must then satisfy the following condition (heap property): key(A) ≥ key(B) Quote:
|
|
Light Poster
|
|
| 27Sep2005,16:33 | #3 |
|
One thing I'll add,-
There will be memory allocation from stack-memory. The heap memory has nothing to do here. Last edited by SATYAN JANA; 27Sep2005 at 16:36.. |

