Ask Question
21 December, 14:26

add is a function that accepts two int parameters and returns their sum. Two int variables, euroSales and asiaSales, have already been declared and initialized. Another int variable, eurasiaSales, has already been declared. Write a statement that calls add to compute the sum of euroSales and asiaSales and store this value in eurasiaSales.

+4
Answers (1)
  1. 21 December, 15:58
    0
    The answer to this question can be given as:

    Statement:

    eurasiaSales = add (euroSales, asiaSales);

    //calling function and value in variable (eurasiaSales)

    Explanation:

    In the above statement, we assume that there is an add function that is already declared. In this function, two variable is passed as the parameter, we add two numbers and return its value. Then we declare the main function in the main function we declare a variable that is (eurasiaSales). This variable holds the value of the add function when we call the function.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “add is a function that accepts two int parameters and returns their sum. Two int variables, euroSales and asiaSales, 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