Define Pass by reference method
Ans: Pass by Reference passes in a reference to a variable- this is effectively the address of the variable into the function. This is considereably more efficient than by value and allows the function to change the variable directly, something only possible in C by passing in a pointer to the variable
No comments:
Post a Comment