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

Solve 2x^2+8x-7=-2 by completing the square
PLZ HELP ME HURRY! Which inequality best models the situation if variable h is the number of hours Valerie might study each night? Valerie's goal is to study m
I don't get adding integers with different signs!! 5+(-2)=?
Which Latin American independence leader lived and worked with poor Mexican villagers to improve their impoverished condition? A. Simon Bolvar B. Father Hidalgo
Marvin says that all rhombuses are squares. Aretha says that all squares are rhombuses. who is correct?
What does " May God thy gold refine" mean? PLEASE ANSWER ASAP!!! THANKS!!!! :)
1.In the 1850s, the North and South strongly disagreed about A.the production of cotton. B.the growth of commerce. C.the diversification of industries. D.the sp
What does a food chain diagram illustrate ? A. an ecosystem's carbon cycle B. an ecosystem's water cycle C. one pathway of feeding in an ecosystem D. multiple
Which of the following does not occur during interphase? A. Replication B. Translation C. Cytokinesis D. An increase in the number o
what bigger 5qt or 10 pt