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
5 minutes and 52 seconds rounded to the nearest minute
kirill [66]

Answer: 6 minutes

Step-by-step explanation: the 52 seconds rounds up to a full minute so it is 5.52 rounded up to 6 minutes

5 0
3 years ago
Read 2 more answers
Find the radius and the diameter to the nearest hundredth when C = 7π yd. Use 3.14 for π.
valentinak56 [21]

Answer:

Diameter = 7

Radius = 3.5

Step-by-step explanation:

Hi! Ace here.

So, the formula to find circumference is dπ or 2rπ

So to find the diameter, you do the circumference/π

To find the radius, you'd do the circumference/2π

Plug-in those numbers and there you go!

Hope this helps, let me know if you have any questions.

I know this was a very vague explanation so I encourage you to ask any questions. Thank you!

5 0
2 years ago
The area of a classroom space per student varies inversely with the number of students in the room. When there are 15 students i
BabaBlast [244]
You would times 20 and 15 to get 300 and then divide 300 by 25 to get 12

8 0
3 years ago
Read 2 more answers
Can someone convert 5cm to milimeter?​
zhenek [66]

Answer: 50 millimeters

Step-by-step explanation:

5 cm is one 100th of a meter. Millimeters are one 1000th. Therefore, 1 of each unit in cm is 10 units in mm

6 0
2 years ago
Read 2 more answers
D) The perimeter of room is 28 m. and the height is 3.5 m. Find the area of 4 walls.
mote1985 [20]

Answer: 98

Step-by-step explanation:

Area of four walls = Curved surface area

                             = perimeter × height

                              =    28          ×   3.5

                              = 98 m square  

7 0
1 year ago
Other questions:
  • Please help me i’m very confused
    6·2 answers
  • A cookie factory uses 1/6 of a bag of flour in each batch of cookies. The factory uses 5/6 of a bag of flour yesterday. How many
    9·1 answer
  • Name the intersection of plane bpq and plane cpq. 1) the planes do not intersect. 2) bp 3)pq 4)cq
    7·1 answer
  • Look at the image plz help!
    5·2 answers
  • What subsets are of 64
    5·1 answer
  • The critical value for a two-tailed test of h0: β1 = 0 at α = .05 in a simple regression with 22 observations is:
    9·1 answer
  • #2. A field of grass feeds 36 cows for 4 days. How<br> many days would the same field feed 20 cows?
    12·1 answer
  • Can y'all help me please​
    15·1 answer
  • (3x2 - x + 5) + (4x - 7)
    15·2 answers
  • Johns family has $12 to spend after buying tickets to the Aquarium. Parking costs $3 an hour.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!