1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Ray Of Light [21]
3 years ago
12

Write the definition of a function minmax that has five parameters. the first three parameters are integers. the last two are se

t 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);
Mathematics
1 answer:
Nitella [24]3 years ago
8 0
Hello,


function minmax(int p1,int p2,int p3, int adr_big, int adr_small)
{ int mini=p1,maxi=p1;
 if (p1>p2)   {mini=p2;}
else            {maxi=p2;};

if (p3>maxi) maxi=p3;
if (p3<mini) mini=p3;
*adr_big=maxi;
*adr_small=mini;
};

// main
int a=31,b=5,c=19,big,small;
minmax(a,b,c,&big,&small);





You might be interested in
Given the polynomial expression 3x^2 + 3bx - 6x - 6b, factor completely.
My name is Ann [436]
The answer is 3 (x+b) (x-2)



Yw! :)
3 0
2 years ago
Find the difference. write the difference in lower term 8 ⅓-5
sergejj [24]

Given data:

The given expression is 8 ⅓-5.

The given expression can be written as,

\begin{gathered} 8\frac{1}{3}-5=\frac{25}{3}-5 \\ =\frac{25-15}{3} \\ =\frac{10}{3} \end{gathered}

Thus, the difference of the given expression is 10/3.

5 0
2 years ago
This equation shows how the accuracy of Alexa's watch is related to how long it's been since she last set it.
Kruka [31]

Answer:

2

Step-by-step explanantion:

You sustitute 20 for s to get 20 = d + 18, subtract 18 from both sides and you get d = 2.

4 0
3 years ago
Please help for this question
kogti [31]
First you need to subtract the 29 and the 8 - equals 21
 Then you subtract 7 and 4- equals 3 
Lastly divide 21 and 3 and get the answer which is 7
Hope this helps.
8 0
3 years ago
Read 2 more answers
The original price of a computer was reduced by 120 dollars. The new,
wariber [46]

Answer:

x-120=899

Step-by-step explanation:

(x=1019)

4 0
3 years ago
Other questions:
  • Express 0.38 as a fraction
    7·2 answers
  • What is the radius of a circle whose equation is x2 + y2 + 8x – 6y + 21 = 0?<br><br><br> units
    13·2 answers
  • Two cards are selected from a standard deck of 52 playing cards. the first is replaced before the second card is selected. find
    11·1 answer
  • Evaluate the expression. <br><br> (-4)2
    14·2 answers
  • Given that p(x)=3x^2-2x+1. Find p(3) and p(x+1)<br> p(3)= p(x+1)=<br><br> please show work
    13·1 answer
  • Sketching lines equations
    15·1 answer
  • All parallellograms are squares true or false​
    13·1 answer
  • I really need help with this TvT
    8·2 answers
  • Which values from the set {-6,-4,-3, -1 0 and 2} satisfy this inequlity? -1/2x+3&gt;5
    12·1 answer
  • The area of two similar triangles are 50dm^2 and 32dm^2. The sum of their perimeters is 117dm. What us the perimeters of each of
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!