Lesson 12 of 24 · +110 xp

Reference Param

Pass by reference.

Explained simply

Your task

Write: void inc(int &x) { x++; }

ref.cpp
← Back