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
What do customers use to access the internet, usually for a monthly fee?
kati45 [8]
To search things like answers,order things on Amazon,or go watch videos on Youtube
4 0
3 years ago
List one way to convey professionalism to the reader of a document.
Ray Of Light [21]
Abstain from contractions like “couldn’t” or “should’ve” and use “could not” or “should have” instead
4 0
3 years ago
Write a c program that prints the initial letter of name​
crimeas [40]

Answer:

#include<stdio.h>

#include<string.h>

int main(){

  char str[20];

  int i=0;

  printf("Enter a name: ");

  gets(str);

  printf("%c",*str);

  while(str[i]!='\0'){

      if(str[i]==' '){

           i++;

           printf("%c",*(str+i));

      }

      i++;

  }

  return 0;

}

Explanation:

8 0
3 years ago
Which two related organizations are responsible for managing the top-level domain name space and the root domain name system (dn
juin [17]

I guess the correct answers are,

IANA (Internet Assigned Numbers Authority)

ICANN (Internet Corporation for Assigned Names and Numbers)

Thе Intеrnеt Assignеd Numbеrs Authοrity (IANA) is a functiοn οf, a nοnprοfit privatе Amеrican cοrpοratiοn that οvеrsееs glοbal IP addrеss allοcatiοn, autοnοmοus systеm numbеr allοcatiοn, rοοt zοnе managеmеnt in thе Dοmain Namе Systеm (DNS), mеdia typеs, and οthеr Intеrnеt Prοtοcοl-rеlatеd symbοls and Intеrnеt numbеrs.

Thе Intеrnеt Cοrpοratiοn fοr Assignеd Namеs and Numbеrs (ICANN /ˈaɪkæn/ ЕYЕ-kan) is a nοnprοfit οrganizatiοn rеspοnsiblе fοr cοοrdinating thе maintеnancе and prοcеdurеs οf sеvеral databasеs rеlatеd tο thе namеspacеs and numеrical spacеs οf thеIntеrnеt, еnsuring thе nеtwοrk's stablе and sеcurе οpеratiοn.

6 0
3 years ago
Select the true statement from those listed below. Java applets may be contained in files with the .class extension Java applets
tiny-mole [99]

Answer:

The correct option of the following question is the Java applets may be contained in the files with .class extension.

Explanation:

JAVA is the Programming Language that can used to create the complete applications which may be run on the single computer or can be distributed among the servers and the clients in the network.

An applet is Internet-based programs that are written in the Java programming language, which is the programming language for Web and it can be downloaded by any of the computers. An applet is also run in the HTML. It is usually embedded in the HTML page on the Website and it can be executed from the browser.

5 0
3 years ago
Other questions:
  • Public class Car {
    15·1 answer
  • Explain how it makes you feel that you must share the road with others
    15·1 answer
  • Should you configure if you want to limit access to files with certain classifications within a folder to a specific security gr
    13·1 answer
  • What are the examples of shareware?
    9·2 answers
  • Which of the following is a component of slides
    10·1 answer
  • Is the very calculation that we wish to avoid. Obtain a second equation by multiplying both sides of this equation by 1.06, then
    5·1 answer
  • Which group on the home ribbon contains commands to control the alignment of text in a document?
    15·1 answer
  • Write a program that reads a list of integers, and outputs those integers in reverse. The input begins with an integer indicatin
    6·1 answer
  • Assume you define a vector in the following way:
    5·1 answer
  • Which components are involved with input? Output? Processing? Storage?
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!