answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Sidana [21]
2 years ago
12

Write a function max that has two c string parameters and returns the larger of the two.

Mathematics
1 answer:
DedPeter [7]2 years ago
7 0
<span>char max(char number1, char *number2){
if (strcmp(number1, number2) > 0)
return number1;
else
return number2;
}</span>
You might be interested in
Paula and Kawai shared $312 in the ratio of 6:7. How much money<br> did each person get?
Maslowich

Answer:

Paula get \$144 and Kawai get \$168.

Step-by-step explanation:

Given: Paula and Kawai shared \$312 in the ratio of 6:7.

To find: How much money  did each person get?

Solution:

We have,

Paula and Kawai shared \$312 in the ratio of 6:7.

So, let Paula get \$6x and Kawai get \$7x.

As per the question,

6x+7x=312

\implies13x=312

\implies x=\frac{312}{13} =24

Therefore, Paula get 6\times 24=\$144, and Kawai get 7\times 24=\$168.

Hence, Paula get \$144 and Kawai get \$168.

6 0
2 years ago
ryan is making small meat loaves. each small meat loaf uses three fourths pound of meat. how much meat does ryan need to make ei
Tema [17]
You do three fourths times eight and that equals six.
4 0
2 years ago
A chef makes 3 containers of soup that fill a total of 120 soup bowls. Each container of soup costs $30 to make. What is the cos
saw5 [17]
300 dollers is your answer thanks for asking
4 0
2 years ago
Read 2 more answers
Sequence 1.5,3.9,6.3,8.7
Nitella [24]
Lololollolollllollllolloolollllll IM TRYING TO GET POINTS. THX
7 0
2 years ago
Read 2 more answers
the population of a village is 15000.among them 9000 read kantipur,75000 read gorkhapatra and 40%read both the magazines.find th
Dominik [7]

Answer:

30%

Step-by-step explanation:

Total population=15,000

kantipur=9000

gorkhapatra= 7500

Both magazine=40%

n(k intersection g)=40% of 15,000

=0.4*15,000

=6,000

n(k) =9000

n(g)=7500

n(A union B)= n(k) + n(g) -n(k intersection g)

=9000+7500-6000

=10,500

Population who do no read= Total population - n(A union B)

=15000-10500

=4500

Percentage population who do not read both magazine

=4,500/15,000 * 100

=0.3 * 100

=30%

3 0
2 years ago
Other questions:
  • A new car is purchased for 25000 dollars. The value of the car depreciates at 8.25% per year. What will the value of the car be,
    6·2 answers
  • Subway I 8 out of 11 people are carrying a briefcase based on this information if there are 700 people on a subway then about ho
    7·2 answers
  • {(–9, 1), (–5, 2), (0, 7), (1, 3), (6, –10)} Josiah claims that the ordered pair (6, –10) can be replaced with any ordered pair
    14·1 answer
  • Find the remainder when f(x) = 2x3 − 12x2 + 11x + 2 is divided by x − 5. (2 points) 7 −3 3 −7
    6·2 answers
  • If the average (arithmetic mean) of 2,7, and x is 12, what is the value of x
    14·1 answer
  • John divided his souvenir hat pins into two piles. The two piles had an equal number of pins. He gave his brother one-half of on
    10·1 answer
  • Which shows the correct substitution of the values ab and c from the equation 0 = - 3x ^ 2 - 2x + 6 into the quadrati formula?
    12·1 answer
  • Joel, a tutor at the Math Help, decided that it would be a good
    6·1 answer
  • Given 8x-3y=-21, 3x+y=-10; Prove x=-3
    12·1 answer
  • Nikki used the calculations shown to determine whether a carton of 12 eggs or a carton of 18 eggs was the better buy.
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!