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

Susan has 7 chores, and she can do them in any order. Use the fundamental counting principle to find the number of different ways she can complete her chores.
I really need help with this question
CER- Conservation of Energy And The Work-Kinetic Energy Theorem (need help)
In studying the behaviour of bouncing balls, a couple of Science 10 students recorded the following energy values. Type of Ball golf ball tennis ball BOUNCING B
Find g(x), where g(x) is the reflection across the y-axis of f(x) = 9x - 1. Write your answer in the form mx + b, where m and b are integers. g(x) =
Two airplanes are flying in the air at the same height. Airplane A is flying east at 400 mi/h and airplane B is flying north at 350 mi/h. If they are both headi
Function A and Function B are linear functions. Which statement is true? The y-value of Function A when x = -2 is greater than the y-value of Function B when x
helpppppppppppppppppppppppppppppp
Show working out Help due asap
price of gas at store was 4.29 per gallon the next week it went up .55 and down .25 and back up 8.30 and finally it went down$.15 what is the price per gallon n