C++ | References | Question 6
Which of the following is FALSE about references in C++
(A) References cannot be NULL
(B) A reference must be initialized when declared
(C) Once a reference is created, it cannot be later made to reference another object; it cannot be reset.
(D) References cannot refer to constant value
Explanation: We can create a constant reference that refers to a constant. For example, the following program compiles and runs fine.
using namespace std;
const int x = 10;
const int& ref = x;
cout << ref;
Quiz of this Question