Possible Duplicate:
How are objects stored in memory in C++?
Hello All,
I am improving the question a bit. I was asked a c++ question about, how the c++ objects are stored in memory when created a object using stack memory and dynamic memory.
When object is created in heap, the automatic variables in class i.e like POD data types. memory will be destroyed after deleting the object. or any different behavior ?
Please provide your comments.
Thanks