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...
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??


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)??