[try Beta version]
Not logged in

 
heap and stack

Feb 25, 2009 at 4:24am
Can anyone please tell me what is heap and stack with explanation ??
Feb 25, 2009 at 10:03am
Feb 25, 2009 at 12:30pm
A variable declared statically is on the stack int i;
A variable declared dynamically is to the heap int *i = new int;


http://www.cplusplus.com/doc/tutorial/dynamic.html
Topic archived. No new replies allowed.