Q. Which of the following statements about C++ references is true?

  • (A) A reference must be initialized when declared.
  • (B) A reference can be null.
  • (C) A reference cannot be assigned a new address.
  • (D) Both A and C
πŸ’¬ Discuss
βœ… Correct Answer: (D) Both A and C
Explanation: In C++, a reference must be initialized when declared and cannot be assigned a new address later.
Explanation by: Rakesh Kumar
In C++, a reference must be initialized when declared and cannot be assigned a new address later.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
122
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Rakesh Kumar
Publisher
πŸ“ˆ
87%
Success Rate