Ask Question

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. 6 January, 11:18
    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 & Technology 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