Google News
logo
CPP - Quiz(MCQ)
What are the advantages of passing arguments by reference?
A)
There is need to copy parameter values (i.e. less memory used)
B)
There is no need to call constructors for parameters (i.e. faster)
C)
Changes to parameter values within the function also affect the original arguments
D)
All of the above

Correct Answer :   All of the above


Explanation : All the above mentioned are advantages and properties of call by reference.

Advertisement