-
What are the advantages of passing arguments by reference?
-
- There is no need to call constructors for parameters (i.e. faster)
- Changes to parameter values within the function also affect the original arguments.
- There is need to copy parameter values (i.e. less memory used)
- All of above
- None of these
Correct Option: D
*There is no need to call constructors for parameters (i.e. faster).
*Changes to parameter values within the function also affect the original arguments.
*There is need to copy parameter values (i.e. less memory used).