Back to Basics: Pointers
summary
Covers concrete claims and demos: what a raw pointer actually stores, toy code that shows dereference, pointers-to-pointers, arrays decaying to pointers, dynamically allocated arrays and a small linked list implementation; shows function pointers and examples of sharing one object from multiple pointers and what happens when it is deleted. Explains pitfalls with reproducible tools: address sanitizer, valgrind for leaks and dangling pointers, and shows common failures: nullptr deref, double free, memory leaks. Presents modern fixes with standard library helpers like make_unique and shared_ptr/weak_ptr; code is on the GitHub link.
AI-written summary · about
chapters (17)
- 0:00Introduction
- 1:03My fondest programming memory
- 3:02What are pointers
- 5:04Visualizing pointers
- 7:34Memory
- 10:28Dereferencing
- 20:40Passing
- 32:37Arrays as Parameters
- 39:26Null Pointer
- 41:28Memory Leak
- 44:56Double Free
- 48:19Smart Pointers
- 53:18Pointing to Functions
- 56:31Data Structures
- 57:08Questions
- 58:01Wrapup
- 58:33Question








