Ask Question
6 April, 08:46

printLarger is a function that accepts two int parameters and returns no value. Two int variables, sales1 and sales2, have already been declared and initialized. Write a statement that calls printLarger, passing it sales1 and sales2.

+1
Answers (1)
  1. 6 April, 11:24
    0
    The statement to this question can be given as:

    Statement:

    void printLarger (int sales1, int sales2) / /function declaration.

    {

    //function body

    }

    Explanation:

    Function is a group of organized code that is used to perform some specific task.

    Syntax:

    return-type functionname (parameters1, ... parameter n)

    {

    //function body.

    }

    In the above function definition we define a function that is "printLarger". This function accepts two integer parameters that is "sales1 and sales2" and does not return any value because we use return-type void.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “printLarger is a function that accepts two int parameters and returns no value. Two int variables, sales1 and sales2, have already been ...” 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