QuestionQ41

VerifiedFunctions, Classes and Objects

Review the following code. Which of the following would return the result of the variable total?

Question Image

Explanation

addTogether accepts three parameters, calculates their sum in the local variable total, and returns that value. Supplying three arguments invokes the function and produces the returned total.

Community Discussion

No comments yet. Be the first to start the discussion!