Question from the C++ - Fundamentals test

Write a C++ function that increments its input parameter and prints the result.