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++
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.