Question: USING C++ Write a void function named smallSort that takes three int parameters by reference and sorts their values into ascending order, so that the
USING C++

Write a void function named smallSort that takes three int parameters by reference and sorts their values into ascending order, so that the first parameter now has the lowest value, the second parameter the middle value, and the third parameter has the highest value. You should also provide a main function that defines and initializes three ints, passes them to your smallSort function, and then prints out the variables (in the same order they were passed to the function). For example if the main method has: int first 14; int second--90 int third-2; smallSort(first, second, third); cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
