Computer Science - Object Oriented Programming Using C++ - Discussion


When you pass a variable _____, C++ passes only the contents of the variable to the receiving function

[A]. by reference
[B]. by value
[C]. globally
[D]. locally

Answer: Option B


No answer description available for this question.

Sukanya said: (Jun 26, 2014)  
In pass by value, only values are passed from the calling function to the called function, while in pass by reference, the address is passed.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.