Ask Question
27 February, 23:21

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

+5
Answers (1)
  1. 28 February, 01:46
    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 you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers