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++

USING C++ Write a void function named smallSort that takes three int

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!