Stage 5: Pointers and Memory
Addresses, pointers, dynamic memory and safe ownership.
- 01
Memory addresses
20 minLocked: Complete "Basic algorithms using collections" first.
- 02
Address-of operator
20 minLocked: Complete "Memory addresses" first.
- 03
Pointer declarations
20 minLocked: Complete "Address-of operator" first.
- 04
Dereferencing pointers
20 minLocked: Complete "Pointer declarations" first.
- 05
Null pointers
20 minLocked: Complete "Dereferencing pointers" first.
- 06
Pointers and arrays
20 minLocked: Complete "Null pointers" first.
- 07
Pointers and functions
20 minLocked: Complete "Pointers and arrays" first.
- 08
References versus pointers
20 minLocked: Complete "Pointers and functions" first.
- 09
Dynamic allocation concepts
20 minLocked: Complete "References versus pointers" first.
- 10
new and delete, including their risks
20 minLocked: Complete "Dynamic allocation concepts" first.
- 11
Memory leaks and dangling pointers
20 minLocked: Complete "new and delete, including their risks" first.
- 12
RAII
20 minLocked: Complete "Memory leaks and dangling pointers" first.
- 13
Smart pointers
20 minLocked: Complete "RAII" first.
- 14
unique_ptr
20 minLocked: Complete "Smart pointers" first.
- 15
shared_ptr and weak_ptr
20 minLocked: Complete "unique_ptr" first.
- 16
Safe memory-management practices
20 minLocked: Complete "shared_ptr and weak_ptr" first.
Level up this stage
- Debugging: Pointer to nowhere (advanced)
- Debugging: Where did my size go? (advanced)
- Revise for exams: MCQs, short questions and past-paper programs