Computer Science, asked by yadavsamriddhi2000, 6 hours ago

Write the definition of a void method that takes as input two parameters of type int, say sum and testScore. The method updates the value of sum by adding the value of testScore. The new value of sum is sent back to the caller statement



Please reply a.s.a.p​

Answers

Answered by arishfa28
0

Explanation:

Here we are using in/out parameter, we refer and assign the value back to sum. This way the calling module will get the updated value.

Similar questions