Ask Question
25 February, 10:07

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

+3
Answers (1)
  1. 25 February, 10:11
    0
    char max (char number1, char * number2) {

    if (strcmp (number1, number2) > 0)

    return number1;

    else

    return number2;

    }
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Write a function max that has two c string parameters and returns the larger of the two. ...” in 📗 Mathematics if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers