ISRO | ISRO CS 2014 | Question 13
Which of the following is true with respect to Reference?
(A) A reference can never be NULL
(B) A reference needs an explicit dereferencing mechanism
(C) A reference can be reassigned after it is established
(D) A reference and pointer are synonymous
Explanation: References cannot be null, whereas pointers can; every reference refers to some object, although it may or may not be valid. A reference can never be re-assigned once it is established.
So, option (A) is correct.
See: References in C++
My Personal Notes arrow_drop_up
Please Login to comment...