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
Given that ​f(x) = x + 4 and ​g(x)​ = x^{2} - x, find ​(f​ + g)(​5), if it exists.
user100 [1]

Answer:

4

Step-by-step explanation:

3 0
3 years ago
Read 2 more answers
Help .. A. 600, 0 B. 50, 350 C. 0, 500
Len [333]

Answer:

C.0, 500

Step-by-step explanation:

6 0
2 years ago
7y = 14 -28x to standard form
MissTica

Answer:

28x + 7y = 14.

Step-by-step explanation:

Just add the 28x to each side.

4 0
3 years ago
Read 2 more answers
Pls help me with this question
Sedbober [7]

7/12,  3/4,  4/7,  5/8,  4/7

Answer:  

Order from Least to Greatest

4/7    =       4/7     <       7/12    <    5/8   <   3/4  

Showing Work  

Rewriting as fractions if necessary:  

7/12, 3/4, 4/7, 5/8, 4/7  

The least common denominator (LCD) is: 168.  

Rewriting as equivalent fractions with the LCD:  

98/168, 126/168, 96/168, 105/168, 96/168  

Ordering these fractions by the numerator in order from least to greatest:  

96/168    =    96/168     <     98/168    < 105/168    < 126/168  

Therefore, your input in order from least to greatest is:

Answer   =======>   4/7    =   4/7    <    7/12    <     5/8    < 3/4


B):  1.35,   5/4,   1.349,  6/5, 7/6

Number of inputs ====>  5

Answer => Ascending Order:  Least to Greatest =====>  7/6, 6/5, 5/4, 1.349, 1.35



C):   0.819,  0.8199, 81/100, 815/1000

Number of Inputs  ======>    4

Answer  ==> Ascending order (Least to Greatest ====>    81/100, 815/1000, 0.819, 0.8199



D):    3  4/7, 245/70, 3.572, 90/29

Number of Inputs:  4

Answer ==>  Ascending Order(Least to Greatest) ==> 90/29, 245/70, 3.572, 3 4/7




Hope that helps!!!!                                              : )

     


3 0
3 years ago
Read 2 more answers
Please solve!!! Bbkakakaj
sdas [7]

Answer:

B is the answer because yes

6 0
2 years ago
Other questions:
  • Yolanda owns 4 rabbits. She expects the number of rabbits to double every year.
    13·2 answers
  • Tyler's school sold 234 boxes for cookies. Each box holds 48 cookies. and how many cookies were sold by Tyler's school??
    11·2 answers
  • a certain number of quartersz five times as many pennies as quarters, and 12 more dimes than quarters are worth 8.00. dollars ho
    12·2 answers
  • What percentage of data is between the lower quartile and the upper quartile?
    5·1 answer
  • Factor the following expression: 12x+4-16x
    15·1 answer
  • The height of a scale model building is in 15 in.The scale is 5 in. to 32 in.Find the height of the actual building in inches an
    13·2 answers
  • A mountain bike is priced at $413. If the sales tax is 6.5 percent, what is the cost to purchase the mountain bike? Round to the
    8·1 answer
  • Is 0.53 greater than 0.35
    12·2 answers
  • If = 20, then p=<br> O A) 20-5 5<br> OB) 20 x 5<br> O'C) 20 + 5<br> OD) 20/5
    10·1 answer
  • Solve for x <br><br> 3x/6 + 1 = 7
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!