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

The number of sticks of gum varies directly as the number of packages. There are 36 sticks of gum in 2 packages . suppose you have 5 packages of gum .write and
calculate the mass of sulphur dioxide prodeuced by burning 16g of sulphur in an excess of oxygen
The radius of the earth's orbit is 45,000,000 meters. What is the number in scientific notation?
How do I make these points (3,-5)(-5,3) into a point slope form equation that contains the given points
What is Joseph Pulitzer known for today
If 1 bus = 12 cars, 3 cars = 1 truck, and 1000 basketballs = 1 truck, how many basketballs can be carried by 8 buses?
Describe the energy conversions that take place in a bicycle lighting system powered by a dynamo
Where did the surrender of the Army of Northern Virginia take place? Antietam Appomattox Gettysburg Washington, DC
9. Among regional languages, _______ combines Hindi with Arabic script and is the official language of _______. A. Punjabi; Afghanistan B. Urdu; Pakistan C.
how does Laius die in Oedipus Rex