How the memory is allocated?

Hello everyone! I have readed that the memory of a program is divided in four areas: 1.code,2.global,3.heap,4.stack.
First I would like to ask if the code area contains the rest areas or is just saparated from them? Also ,the global area contains heap and stack? And last ,i readed that each time a virtual function is declared a virtual table is created.This virtual table in wich memory area is allocated? Thanks!
No, No, and global.

In the first question i suppose the no goes to "if the code area contains the rest areas" rigth?
Topic archived. No new replies allowed.