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
In parallelogram ABCD if m
balu736 [363]

Answer:

no idea what the answer is

6 0
3 years ago
Read 2 more answers
The area of a square is 15.1 units². Estimate the length of the sides. Explain how you estimated.
kykrilka [37]

If it is just an estimate then it would be around <em>4</em>. 15.1 is pretty close to 16 which has a perfect square root of 4. Since it is a square both length and width would be the same. To check it you can just square 4 or 4 times 4 and get 16. Hopefully I helped! And sorry if I am wrong.

BTW the exact answer would be 3.88~ (square root of 15.1) just incase you needed that. :)

6 0
3 years ago
Pete's Taco Stand finds that the cost to produce 400 tacos is $650, while the cost to
inn [45]

Answer:

ndvfk,xdnvjdnnck,jndz

Step-by-step explanation:

.kmefkjsnfkjdnbfjkdsnb

sorry i want points

4 0
3 years ago
0.9 (7/6-2)+0.6 solve help asap
skelet666 [1.2K]
-0.15 is the correct answer I suppose!
6 0
3 years ago
ANSWER ONLY IF YK IT IM GIVING CORRECT BRAINLIEST
wariber [46]

Answer:

-5(3x^3-1)

Step-by-step explanation:

-15x^3+5

Factor out -5

-5(3x^3-1)

4 0
3 years ago
Other questions:
  • Suppose the scores of students on an exam are normally distributed with a mean of 244 and a standard deviation of 79. According
    14·1 answer
  • Which one is the answer? please help!!
    7·1 answer
  • How many solution exist for the given equation .75 ( x + 40)
    12·1 answer
  • Solve the equation<br><br> c/7=6 1/7
    15·2 answers
  • 8
    14·1 answer
  • Solve the right triangle. Round decimal answers to the nearest tenth.
    6·1 answer
  • Which of the following graphs represents all values of x for which (2 + 1)(x - 3) &lt;0?
    12·1 answer
  • Find the area of the rectangle shown. 0.3 in. 0.6 in.
    5·1 answer
  • A line passes through the point (-2, -6) and has a slope of
    6·2 answers
  • Find the volume of the composite solid 3 in. 8 in. 11 in.​
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!