18 lines
540 B
Markdown
18 lines
540 B
Markdown
# Module 05: Pointers and References
|
|
|
|
## Learning Goals
|
|
|
|
- Understand pointers, addresses, and dereferencing
|
|
- Use references as aliases and for function parameters
|
|
- Apply pointer arithmetic carefully
|
|
- Manage dynamic memory with `new`/`delete` and prefer smart pointers later
|
|
|
|
## Exercises
|
|
|
|
| Exercise | Topic |
|
|
|----------|-------|
|
|
| `pointer_basics` | Address-of, dereference, null |
|
|
| `references` | Reference parameters and return |
|
|
| `pointer_arithmetic` | Iterating with pointers |
|
|
| `dynamic_memory` | Manual allocation patterns |
|