Multiple choice

Which of the following is NOT true for C++ reference?

  1. A reference must be initialised, when it is created.

  2. Once a reference is initialized to an object, it cannot be changed to refer to another object.

  3. NULL references are not allowed.

  4. When a reference is used as a function argument, any modification to the reference inside the function will not cause changes to the argument outside the function.

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

It is NOT a property of the C++ reference. It shows incorrect understanding of C++ reference concepts.