Skip to main content

Practice · 1 of 3

Scale through a reference

CHALLENGE
Difficulty: intermediate+25 XP

Implement void scale(int& value, int factor) that multiplies value in place through the reference (no return value, no copies).

Back to lesson: Practice: References: borrow and write through