Problem
What (if anything) is different about the behavior of the following two functions f and g that increment a variable and print its value? Write a program that calls both functions.
void f(int x) { std::cout << ++x; }
void g(int& x) { std::cout << ++x; }.