Ask Question
15 December, 04:46

Write the definition of a function printLarger, which has two int parameters and returns nothing. The function prints the larger value of the two parameters to standard output on a single line by itself. (For purposes of this exercise, the "larger" means "not the smaller".)

+1
Answers (1)
  1. 15 December, 08:27
    0
    Something like this (not tested):

    void printLarger (int a, int b)

    {

    cout < = b? a : b;

    }
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Write the definition of a function printLarger, which has two int parameters and returns nothing. The function prints the larger value of ...” in 📘 Computers and Technology 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