Passing by reference is used if a parameter's data flow is two-way, into and out of the function.
C. two-way, into and out of the function.
<u>Explanation:</u>
If a function in programming language passing the parameter by reference means it only sending the address of parameter to a function. If any value is changed on reference parameter it will changed original value.
If parameter passed by value means it is one way, where value been send to the function.
Whereas by reference means it two-way, in and out of the function. Mostly it called as pointer.
It is available in c , c++, where declare of variable “*” or “&” address off.
Explanation:
The else statement is usually used when computations are still required when a condition is not met in an if and else-if statement, so the correct option is the fourth one: "to describe what should happen when the condition of an if statement isn't met".
Hope this helps :)