heap and stack

Can anyone please tell me what is heap and stack with explanation ??
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.