References & Pointers
References and pointers are some of the most powerful features in C++; they allow programmers to directly manipulate memory.
StartKey Concepts
Review core concepts you need to learn to master this subject
const
Reference
const
Reference
int triple(int const &i) {
return i * 3;
}
In C++, pass-by-reference with const
can be used for a function where the parameter(s) won’t change inside the function.
This saves the computational cost of making a copy of the argument.
References and Pointers
Lesson 1 of 1
What you'll create
Portfolio projects that showcase your new skills
How you'll master it
Stress-test your knowledge with quizzes that help commit syntax to memory