ISRO Computer Science (CSE) 2014 - Question 13

All ISRO Computer Science (CSE) papers | ISRO Computer Science (CSE) 2014

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

Answer: A. A reference can never be NULL

Explanation: In C++, a reference must be initialized to a valid object and cannot be null.

| | All questions of ISRO Computer Science (CSE) 2014