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

Plz help Complete the statement. If a transversal intersects two parallel lines, then _____ alternate interior angles are always congruent. corresponding angles
What race are Panamanians?
Which function represents the number of seconds , s in d days ( hint the number seconds in a day us 24x60x60=86,400 the function that represents the number of s
Jim and Cindy, working together, can clean the house in 6 hours. Working alone, Cindy takes three times as long as Jim. How long does it take Jim to clean the h
Counsuela is three times as old as Mary. In 10 years she will be only twice Mary's age. How old was Councuela 4 years ago?
What is the value of x in the equation 3(2x + 8) = 0? –8 –4 4 8
Which function represents the number of seconds , s in d days ( hint the number seconds in a day us 24x60x60=86,400 the function that represents the number of s
Which of the following describes the main reason the Spanish conquistadors needed Native American slaves?
How did the events surrounding the Bonus Army in 1932 affect people’s attitudes? More Americans wanted MacArthur to be president. More Americans disliked Hoover
Which of the following describes the main reason the Spanish conquistadors needed Native American slaves?