Write a function addOne that adds 1 to its integer reference parameter. The function returns nothing.

LANGUAGE: C++

CHALLENGE:

Write a function addOne that adds 1 to its integer reference parameter. The function returns nothing.

SOLUTION:


void addOne(int& num){
   num = num + 1;
}