Google News
logo
CPP - Quiz(MCQ)
How a reference is different from a pointer?
A)
A reference once established cannot be changed
B)
A reference cannot be null
C)
The reference doesn’t need an explicit dereferencing mechanism
D)
All of the above

Correct Answer :   The reference doesn’t need an explicit dereferencing mechanism


Explanation : References can never be NULL. It is not allowed to change a reference once allocated. Referencing does not need an explicit referencing operator.

Advertisement