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
HELPPP ME PLSSS AND NO BOTS BC I WILL REPORT AND I BARELY HAVE POINT SO PLS HELP ME
goldenfox [79]

Answer: 52 1/2 inches. Draw a vertical line up from the 20 week marker and where that line intersects the slanted red line and. Then take a straight edge and draw a line parallel to the "week" line on the bottom of the graph from the intersection to intersect the height line. Where the second line crosses the height line that number is the height of the plant at 20 weeks.

5 0
3 years ago
What is the mean of the data set below? Round to the nearest tenth when necessary.19, 21, 41, 35, 43, 57
babunello [35]
Mean is 36! please mark brainliest
7 0
3 years ago
One solution of x^2-25=0 is 5 what is the other solution
zepelin [54]

Add 25 to both sides:


x^2 = 25


Square root both sides.


When you square root a perfect square, you will get a plus/minus result:


\sqrt{25} = \pm 5


x = \pm 5

\boxed{x = -5} \land \boxed{x = 5}


The other solution to this answer is x = -5.

5 0
3 years ago
A theater can seat 170 people. The number of rows is 7 less than the number of seats in each row. How many rows of seats are the
maks197457 [2]
Answer:number of rows =10
number of places in row = 17

Step-by-step explanation:
number of rows =N
number of places in row = N+7
N(N+7)=170
N^2+7n-170=0
(N+17)(N-10)=0
N1=-17
N2=10
We can`t take negative value for quantity of smth so we throw N1 away
From that number of rows =10
number of places in row = 10+7=17
5 0
2 years ago
Zach spent 2/3 hour reading on Friday and 1 1/3 hours reading on Saturday. How much more time did he read on Saturday than on Fr
hodyreva [135]
Subtract.

1 1/3 - 2/3

Convert 1 1/3 into an improper fraction:

4/3 - 2/3

Subtract the numerators together:

2/3

So he read 2/3 more time on Saturday than on Friday.
7 0
3 years ago
Read 2 more answers
Other questions:
  • Help with this question please!!
    11·1 answer
  • Roll two fair 6 sided dice. what is the probability that both dice show prime numbers?
    13·1 answer
  • Please solve thanks!
    14·1 answer
  • Please hurry .... Point Z is equidistant from the sides of RST which must be true?
    6·2 answers
  • There is an integer n such that 2n2 − 5n + 2 is prime. To prove the statement it suffices to find a value of n such that (n, 2n2
    8·1 answer
  • Grayson charges $35 per hour plus a $35 administration fee for tax preparation, lan charges $45 per hour plus a $15
    7·1 answer
  • Calcule o valor de x, sabendo que as retas “e” “f” e “a” são paralelas
    13·1 answer
  • Select the more effective use of correlative conjunctions to join these sentences.
    8·2 answers
  • Three-quarters the product of two numbers m and n. what is it in algebraic expression
    6·1 answer
  • (PLEASE HELP QUICK, I WILL GIVE BRAINLIST)
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!