Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Why references are different from pointers?

a) A reference cannot be made null
b) A reference cannot be changed once initialized
c) No extra operator is needed for dereferencing of a reference
d) All of the mentioned

Answer: d
Explanation: References cannot be made null whereas a pointer can be. References cannot be changed whereas pointers can be modified. Pointers need * operator to dereference the value present inside it whereas reference does not need an operator for dereferencing.

Join The Discussion