Write the definition of a function minMax that has five parameters.

Write the definition of a function minMax that has five parameters.

LANGUAGE: C++

CHALLENGE:

Write the definition of a function minMax that has five parameters.
The first three parameters are integers.
The last two are set by the function to the largest and smallest of the values of the first three parameters.
The function does not return a value.
The function can be used as follows:
int a=31, b=5, c=19 big, small;
minMax(a,b,c,&big,&small);
/* big is now 31 */ /* small is now 5 */

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days – Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level