Answer:
Here!
Hope this helps. Please mark brainliest!
The answer to the question is A
<h2>Yes the swap method exchange parameter values if passed by reference or the value gets changed inside the function.</h2>
Explanation:
Since the program is not given, I will try to guide you about the mode of parameters.
The meaning of swap is interchanging the values. It can be done by using temporary variable or without using it (if the values are integers).
While passing the parameters, there are two ways, call by value/pass by value and call by reference/ pass by reference.
If call by value, then the value gets swapped only inside the function and will not reflected in the calling portion. Call by reference is other way round.