Amazon Interview Question
Software Engineer / DevelopersI think there is no diff between memory layout of C and c++ its same , you will have stack , heap , static data , text segments .
memory layout and size of object depends of following variables.
- number of members
- number of methods
- is it derived from base class
- is there any virtual fucntion
check this site
- swakri February 08, 2008hacksoflife.blogspot.com/2007/02/c-objects-part-1-basic-object-memory.html