dannaasc5031 dannaasc5031
  • 25-07-2017
  • Mathematics
contestada

Write a function max that has two c string parameters and returns the larger of the two.

Respuesta :

Kalahira
Kalahira Kalahira
  • 02-08-2017
char max(char number1, char *number2){
if (strcmp(number1, number2) > 0)
return number1;
else
return number2;
}

Answer Link

Otras preguntas

Why did the colonists fought back against the British rule?
What's 16.6666667 to the nearest tenth
Do you think you can accurately determine a person's genotype by observing his or her phenotype?
Harold's old school has 52 sixth graders and 39 seventh graders, what's the ratio of 6th graders to 7th graders in simplest form? (:
Point B is on the graph of the function f(x) = -3x2. If the x-coordinate of point B is 2, which ordered pair gives the location of point B?
in relation to the earth's surface, explain where rock spend most of there time.
Millions of Americans are subjected to drug testing in the workplace.  The tests are not always reliable.  A false positive rate of 5% is considered to be a con
in relation to the earth's surface, explain where rock spend most of there time.
Justin works as a car salesman. Last week he had a total of 42,000 dollars in sales. if his Commission is 2 percent how much did Justin earn and last week?
Point B is on the graph of the function f(x) = -3x2. If the x-coordinate of point B is 2, which ordered pair gives the location of point B?