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

Which of the following is NOT a mountain range in the Indian Perimeter? a. Indus Valley b. Himalayas c. Karakoram d. Hindu Kush
trace the arab-israeli conflict between 1947-1980. why has this conflict been so difficult to resolve?
x^4 + 4x^3 + 4x^2 = -16x
What is the main cause of seasonal changes on earth? A. the rate of earth’s rotation B. the speed of the moon’s revolution around earth C. the distance betwe
Why do some archaeologists believe that women were the first farmers?
which molecules are compounds?
2. How do repressive regimes interact with civil society, and what impact does that have on citizens?
What is the sentence order of the following sentence? Down the street marched the parade. A. natural B. inverted
Assume that you are a member of a special interest group that wants to raise taxes on certain items. Who would you present your idea to if you wanted it to be p
In a controlled scientific experiment, A. only one variable can be kept constant. B. no variables are kept constant. C. all variables are kept constant.