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
1. What is the measure of angle PSQ?<br><br> 80°<br> 140°
Anna11 [10]
140 degrees because an angle of a circle is 360 degrees and you can subtract these angles from it to get 140 degrees
3 0
3 years ago
Read 2 more answers
How many terms are in the expression<br><br> a3 + 3a2b - 4b - 11b + 7<br><br> 5<br> 6<br> 4<br> 7
Contact [7]

Answer:

there are 5 terms!

Step-by-step explanation:

trust me

6 0
2 years ago
I need help ASAP THANK YOU
Anestetic [448]

Answer:

see explanation

Step-by-step explanation:

To prove that BC ≅ AD, that is that BC = AD

You would need to prove the lengths are the same.

4 0
3 years ago
Read 2 more answers
Morgan's mom wants to borrow $720 to buy a new computer. The store will charge her 8% simple interest for one year. How much wil
Afina-wow [57]

Answer:

$777.60

Step-by-step explanation:

8/100 = 0.08

0.08 * 720 = 57.6

57.6 + 720 = 777.6

8 0
3 years ago
Read 2 more answers
DUE IN THE NEXT 10 MINUTES, PLEASE HELP! Describe the strategy used to find an equation of a line, given its slope and a point o
Llana [10]
Y=mx+b helps to find slope of a line.
B is where it starts on the y axis.
m is the slope.
3 0
3 years ago
Other questions:
  • Solve the following system of equations graphically. Click on the graph until the correct solution of the system appears.
    12·1 answer
  • Why are halves a good choice for benchmark fractions for 1 1/3
    15·1 answer
  • 7. You draw a card from a poker deck, replace it, and draw
    10·2 answers
  • 2.
    5·1 answer
  • A + B = 40 B + C = 50 C + A = 30 Give a whole number value for A, B and C to make the above true. A = _____ B = _____ C = _____
    15·1 answer
  • It cost Jodi $44.88 to buy 12 gallons of gas. What was the cost per gallon of gas?
    8·1 answer
  • If 40% of a number is 112 and 95% of the same number is 266, find 55% of that number.
    15·1 answer
  • Cuanto es 1/3 mas 3/4 mas 1/2 lo necesito por favor ;_;​
    8·1 answer
  • May somebody help me with this question? It is in the picture.
    13·2 answers
  • Please solve please be right
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!