A void function that takes 5 int parameters. The first three are call-by-value parameters the second two are call-by reference parameters.
This function will compare the first three by-value parameters and store the smallest of the three into the first by-reference parameter, and store the largest of the three into the second by-reference parameter. You may only have 4 comparison operations in this function (2 for min, 2 for max).
What do these parameters mean??? and how does it relate to how I write my min and max
The input prompt is
void MinMax;
{
cout << "Please enter three integers x, y, z:" end;
cin << ???????
cout << "Min is" X, "Max is" Y
I need to :
Replace X with the smallest number, and Y with the largest number.
int small = 10000;//(big number)
int big = 0;
int total;
cout << "enter number" << endl;
cin >> total;
//lets say there is many numbers
if(small > total)
small = total;
if(big < total)
big = total;