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
kakasveta [241]
3 years ago
12

Write the definition of a function named max that receives an int parameter and returns the largest value that it has been calle

d with so far. So, if you make these calls to max, max(5), max(3), max(12), max(4), the values returned will be (respectively): 5, 5, 12, and 12.
Computers and Technology
1 answer:
kkurt [141]3 years ago
8 0

Answer:

Following are the code in the C language .

int max(int x) // function definition

{

static int largest=0; // variable declaration

if (x>largest) // checking the condition

largest=x; // assign the value of input in the largest variable

return largest; // return the largest number

}

Explanation:

Following are the description of code .

  • Decalred a function max of int type which hold a parameter x of int datatype.
  • In this function compared the number x with the largest .If this condition is true then largest number hold the value of x variable
  • Finally return the largest number .
You might be interested in
Which are the two places where auto sum button is available?​
Pavel [41]

Click on the AutoSum button from the Editing group of the ribbon. Excel will highlight the ... The AutoSum option can be found in two areas :.

7 0
3 years ago
Why is it so important to have a checking account?
aalyn [17]

Answer: Having a checking account sets you up for financial success. Get access to your money quicker, complete financial transactions on your phone or tablet, rest assured that your money is protected, and easily track your spending so you can make better money choices.

Explanation: Hopefully this helps you. (pls don't report if wrong)

8 0
3 years ago
Read 2 more answers
Sarah wants to calculate how much of a profit she would make on producing and selling a new product. Sarah should use a _____.
vagabundo [1.1K]
The answer is spreadsheet. I just did this lesson and I got all of the answers right so I know it's correct.
4 0
4 years ago
Case 9-2 Gracie is trying to decide between Windows or macOS for her new desktop computer. Since you have desktops that run both
MrMuchimi

Answer:

Finder

Explanation:

The Finder is the default file manager and graphical user interface shell used on all Macintosh operating systems. Described in its "About" window as "The Macintosh Desktop Experience", it is responsible for the launching of other applications, and for the overall user management of files, disks, and network volumes.

- this seems very course reliant, refer to your course if this is not the answer you were looking for.

3 0
3 years ago
What position should you hand be on the steering wheel? yuyuyhj
Diano4ka-milaya [45]

Answer:

9 and 3

Explanation:

its the right way and njcs wdhiqgua wdiu posef

8 0
3 years ago
Other questions:
  • If I add a # symbol in front of the cells row/column, it will keep the value true.
    14·1 answer
  • 1. How do you answer questions that require you to draw inferences? (1 point)
    7·2 answers
  • What was the second phone made in the world called?
    5·1 answer
  • True or false a relational database is one in which every data item is related to every other data item
    6·1 answer
  • "Simon Says" is a memory game where "Simon" outputs a sequence of 10 characters (R, G, B, Y) and the user must repeat the sequen
    5·2 answers
  • The idea that managers tend to communicate more with other managers who share similar beliefs and experiences is represented by
    8·1 answer
  • A customer seeks to buy a new computer for a private use at home.The customer primarily needs the computer to use the Microsoft
    8·1 answer
  • Need help ASAP??? Pick the best answers
    10·1 answer
  • TLE(ICT)-10
    10·1 answer
  • Explain any one method of creating a presentation.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!