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

A music download service charges a flat fee each month and $0.99 per download. the total cost for downloading 27 songs this month is $42.72. How much is the fla
How did darius use satraps and the royal road to hold his empire together
What are documents, drawings, and programs stored on the hard drive called?
A lake was stocked with 80 trout, 20 bass, 70 walleye and 30 catfish. What is the probability that a fisherman catches a trout first then a second trout.
an old movie theater has seats on a main floor and in a balcony the main floor has 26 rows of 29 seats in each row the balcony has eight rows of 23 seats in eac
Is the quantity of goods and services the economy can produce a real or nominal variable?
Why was scout's first day of school a terrible disappointment to her?
Which lawmakers must be at least 30 years old and u.s. citizens for at least nine years?
What is the relationship between cell size and the movement of materials into and out of cells?
The only one of the crusades that managed to achieve its goal of recapturing jerusalem was the