📖 Book · c language · high
🧱 Pointers, arrays & memory in C
Array decay, a[i] == *(a+i), pointer arithmetic, and owning heap memory with malloc/free.
The C memory model interviewers probe: why arrays and pointers differ, array-to-pointer decay and where it doesn't happen, pointer arithmetic in elements, and malloc/realloc/free with the dangling-pointer and use-after-free traps. All runnable.
3 chapters▶ runnable code✦ in-depth animation
What this book covers
- 01Arrays are not pointers — until they decay
- 02malloc / free — owning raw memory
- 03The classic C memory bugs
Read it in full — runnable C++ + step-through animations
Every chapter of Pointers, arrays & memory in C ships complete, editable code you compile and run in the browser, plus the same in-depth animations as the lessons.