Just like a C program memory is divided into four parts: data segment, code segment, stack and heap, I want to know if a C++ program has the same kind of memory layout (in my knowledge the answer is yes, but my knowledge is very very limited)? does it have some other segment outside of the above four? and where are the vtables stored?

I have tried searching the net for an answer to this but didn't find anything relevant. There is a lot of material on Object memory layout but not this.

Will appreciate all informed discussion.