C++ Tutorial

A follow-along series of coding experiments that allowed me to explore and understand concepts like the vptr, vtable, and how the compiler organizes base and derived members in memory by seeing them in action through code.

I’ve struggled to understand the exact memory layout of C++ objects. Each time I thought I grasped it, I later came back to realize I didn’t. So, I decided to make a series of experiments to make sure that this time I really got it. Hopefully this post will be useful to you if you’re like me, someone who loves lots of diagrams and experiments to visualize concepts.

You can find all the code and experiments on [GitHub](https://github.com/sofiab…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help