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
puteri [66]
2 years ago
8

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.
Computers and Technology
1 answer:
guapka [62]2 years ago
8 0

void minMax(int a, int b, int c, int*big, int*small)

{

if(a>b && a >c){

*big = a;

if(b>c)

*small = c;

else

*small = b;

}

else if (b>a && b>c){

*big = b;

if(a>c)

*small = c;

else

*small = a;

}

else{

*big = c;

if(a>b)

*small = b;

else

*small = a;

}

}

You might be interested in
Consider the following program segment. ifstream inFile; //Line 1 int x, y; //Line 2 ... //Line3 inFile >> x >> y; /
AnnyKZ [126]

Answer:

inFile.open("progdata.dat");

Explanation:

5 0
2 years ago
Is science fiction always set in the future
Natali5045456 [20]
Yes and No it all depends on how the author wants the poem how to be and become. Majority of the time science fiction is set for the future.
5 0
2 years ago
How to get amount after a percentage increase in excel​
Tresset [83]

Answer:

First: work out the difference (increase) between the two numbers you are comparing.

Increase = New Number - Original Number.

Then: divide the increase by the original number and multiply the answer by 100.

% increase = Increase ÷ Original Number × 100.

Explanation:

3 0
2 years ago
Read 2 more answers
Diffrence betwwen RAM and ROM​
cestrela7 [59]
Answer : RAM is used to store computer programs and data that CPU needs in real time. ROM have prerecorded data and it is used to boot computer.
5 0
2 years ago
If the numbers on the spring scales read 200 g. What property of the shoes is being measured?
lianna [129]
Pretty sure its mass
5 0
3 years ago
Other questions:
  • Write a program that prompts the user to input an integer and then outputs both the individual digits of the number and the sum
    6·1 answer
  • Nick’s computer has been restarting on its own. what action should he take to solve this issue?
    14·1 answer
  • TCP will guarantee that your packets will arrive at the destination, as long as the connection is still established. True False
    11·1 answer
  • Audra recently earned her associate’s degree and is looking for a job. Her resume lists her strengths in a separate section. Som
    13·2 answers
  • How to get the absolute value in coding begginners?
    13·2 answers
  • How do you activate the Formula AutoComplete function of Excel 2016?
    15·2 answers
  • Instructions The population of town A is less than the population of town B. However, the population of town A is growing faster
    8·1 answer
  • Among object-oriented languages, one feature that varies considerably is whether the language allows multiple inheritance. C++ d
    5·1 answer
  • How can you stay safe on the Internet? Check all that apply.
    8·2 answers
  • Select the correct answer.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!