Correct Answer - Option 3 : Passing parameters by reference
Explanation:
In C or C++, we cannot return multiple values from a function directly.
We can return more than one value from a function by using the method called “call by address”, or “call by reference”.
In the invoker function, we will use two variables to store the results, and the function will take pointer-type data. So we have to pass the address of the data.
In pass-by reference (also called pass-by address), a copy of the address of the actual parameter is stored.