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

Discussion Forum : Object Oriented Programming Using C++ - Section 1 (Q.No. 42)
42.
Of the three ways to pass arguments to functions, only passing by _____ and passing by _____ allow the function to modify the argument in the calling program
reference, pointer
array, location
array, pointer
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
3 comments Page 1 of 1.

Neha said:   9 years ago
@Sindhuja, Are you sure the answer is C?

Sindhuja said:   9 years ago
Both reference and pointer are different. Reference is just an alias to the given variable and it returns the value. Whereas pointer it just hold the address of the given variable.

Ans: C.

Varun Girdhar said:   1 decade ago
Can you explain difference between reference and pointer I think both are same. Both pass address of where the value is store not the value.

Post your comments here:

Your comments will be displayed after verification.