Challenge: Set the Smallest Number to -1

Test your knowledge by solving a challenge in this lesson.

Problem statement

Your task is to write a function minimum. In the function parameter, you will pass two values of type int by reference, and function will set the smallest number of the two to -1.

Get hands-on with 1200+ tech skills courses.