Ask Question
19 May, 10:04

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.

+3
Answers (1)
  1. 19 May, 12:30
    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?
Get 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 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