Skip to main content

Practice ยท 1 of 3

Scale through a reference

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

Difficulty: intermediate

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