Discussion :: C++ - MCQs
- What are the advantages of passing arguments by reference?
A.
Changes to parameter values within the function also affect the original arguments.
|
B.
There is need to copy parameter values (i.e. less memory used)
|
C.
There is no need to call constructors for parameters (i.e. faster)
|
D.
All of the mentioned
|
Answer : Option D
Explanation :
All of the mentioned
Be The First To Comment