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

Are grizzly bears carnivores
Jason has two pairs of pants, four shirts, and two pairs of shoes from which to choose to wear to school. How many possible outcomes does Jason have? A. 2 B. 4
Suppose that a random sample of size 36 is to be selected from a population with mean 50 and standard deviation 7. What is the approximate probability that X wi
(04.01 MC) Hexagon IJKLMN is shown on the coordinate plane below: Hexagon IJKLMN on a coordinate plane with ordered pairs at I negative two, six, at J four, fo
Miquel babysits for 3 hours and eams $15. Which represents the unit rate?0 $1 per 5 hoursO $15 per hour0 1 hour per $5o 55 per hour​
If we are in a pool submerged in water and someone shouts from outside, do we hear the sound? What happens on your tour? What phenomenon occurs?
What was the significance of the British Reform Act of 1832?
Solve the system of linear equations by graphing. Round the solution to the nearest tenth. y = –0.25x + 4.7 y = 4.9x – 1.64 The approximate solution to the syst
Im need help on this question
A box contains 20 different balls numbered from 1 to 20 (different balls have different numbers). At each step, we select a ball uniformly at random, record the