← Quiz: C++ Interview Questions: all 10 questions
Quiz: C++ Interview Questions · Question 8 of 10
Which statement about references is true?
Which statement about references is true?
- A.A reference can be re-pointed to another variable later
- B.A reference can be null
- C.A reference must be initialised when it is declared
- D.A reference uses -> to reach members
Answer & explanation
Correct answer: A reference must be initialised when it is declared
Once bound, a reference always refers to the same object.
Can you get the rest right without peeking?
Take the timed Quiz: C++ Interview Questions quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →