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]
4 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]4 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
The number of home runs scored by teams in the Brooksfield baseball league are
juin [17]

Step-by-step explanation:

o ne demek kaarrrşiömm hııı

3 0
3 years ago
There is a bag with only milk and dark chocolates, the probability of randomly choosing a dark chocolate is 7/9, there are 21 da
amid [387]

Answer:

6 milk chocolates

Step-by-step explanation:

7/9=21

21/7=3

3=1/9

3*9=27

27=total chocolates

21=dark chocolates

27-21=6

4 0
3 years ago
Read 2 more answers
Write and solve an inequality to find the values of x for which the perimeter of the rectangle is less than 100.
AlexFokin [52]

Answer:

100 = 2(x+x+4)

100=4x+8

92=4x

23=× max

x \leqslant 23

7 0
4 years ago
How many cubic in centimeters equal one ounce
tiny-mole [99]

Answer:

29.574

Step-by-step explanation:

Just a fact I learned in school!!!

6 0
3 years ago
9+___=10<br> 1+____=10<br> 200+500+2000-3000
Paladinen [302]

Answer:

1

Step-by-step explanation:

8 0
3 years ago
Other questions:
  • Sammy picks blueberries and cherry tomatoes.
    5·1 answer
  • Which of these expressions is equivalent to log (12^8)
    11·2 answers
  • The dimensions of a box are 13 1/2 in.,6 1/2in., and 5 in,what is the volume of the box?
    6·1 answer
  • Which of the following shows the figure rotated 90 degrees counterclockwise around the origin and then reflected across the x-ax
    9·2 answers
  • Solve.  33m+25=31.6   Thank YOu!
    7·2 answers
  • Write an equation of the line that is perpendicular to the line y - 2x + 8, and which passes through the point (6,-2)
    14·1 answer
  • 7 times the sum of a number an 24?
    13·1 answer
  • Which pilgrim dresses in red and blue?
    11·2 answers
  • How do I turn 5 — 3(х+1) — 2y — 3х + 2 into an y=mx+b form​
    10·1 answer
  • HELP HELP HELP ME SOMEONE PLSSSSSS PLSSS
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!