Ask Question

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. 16 February, 05:12
    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 & 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