Learn C++: References and Pointers
Work with memory directly in C++: references and pass-by-reference, pointers and dereferencing, null and dangling pointers, dynamic memory and smart pointers, and a bike-share dock project.
- Beginner level
- 2 modules
- 6 lessons
- 31 tasks and questions
Syllabus
01References and PointersWork directly with memory. Create references and pass arguments by reference, take addresses and dereference pointers, avoid null and dangling pointers, and manage dynamic memory with new, delete and smart pointers.5 lessons
02ProjectPractice references and pointers by writing the software for a bike-share dock: reference parameters that report results, a pointer that may be null, and changes made through both.1 lesson