Learning path

Pointers and memory

Pointers, pointer arithmetic, dynamic memory and RAII, the parts that make C and C++ different.

6 lessons · 8 challenges

Start the path →
  1. Lesson 1 challenge Pointers and Addresses Store an address, dereference it, and modify the original object.
  2. Lesson 1 challenge Pointer Arithmetic Walk through contiguous array storage with pointers and iterators.
  3. Lesson 1 challenge Dynamic Memory Management Allocate a runtime-sized array and release it safely.
  4. Lesson 2 challenges Multidimensional Arrays Traverse a row-major matrix and calculate row totals.
  5. Lesson 1 challenge RAII and Deterministic Cleanup Tie resource lifetime to object lifetime.
  6. Lesson 2 challenges Dynamic Array and std::vector Grow contiguous storage as values are appended.