I'm working as java programmer and just now starting to learn c++ and irrlicht (want to create games as a hobby ;) ).
I am completely confused by stack vs heap issue.
What is the advantage of using heap? Isn't it MUCH faster and more efficient to create variales on stack and pass them by reference.
What I mean is:
Object obj = new Object();
I am also confused by memory managment in c++. When stack object is freed is there a memory "hall" in stack.