Ask Question
22 October, 21:30

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.

+3
Answers (1)
  1. 23 October, 00:14
    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?
Get 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 & Technology 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