Copy of an entire object is passed to a function - Pass-by-value

Q.  C++: When a copy of an entire object is passed to a function, then it is referred to as
- Published on 24 Jun 15

a. Pass-by-reference
b. Pass-by-pointer
c. Pass-by-value
d. None of the above

ANSWER: Pass-by-value
 
The pass-by-value passes arguments to a function copies the actual value of an argument into a formal parameter of a function.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)