Ask Question
21 October, 14:49

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

+5
Answers (1)
  1. 21 October, 17:44
    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?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers