Ask Question
5 September, 12:57

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. 5 September, 13:08
    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 & 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