I guess my question requires no minmal working example; it's possible a no-brainer and easy to describe.
Let's assume there is a class instance which stores some objects as members. Now one of the members grows during runtime. After creating the instance member1 consumed 10 bytes and member2 20 bytes. Then object1 is modificated somehow and needs now 15 bytes.
My question is if the address of (the first byte of) member1 is unchanged? Or can it potentially be possible that the first byte of member1 has now another address as before? Are member variables allocated at the heap?
Thanks for your feedback!
Best