Google News
logo
CPP - Quiz(MCQ)
Identify the correct sentence regarding inequality between reference and pointer.
A)
we can not create the array of reference
B)
we can use variable
C)
we can use reference to reference
D)
we can create the Array of reference

Correct Answer :   we can not create the array of reference


Explanation :

It is not allowed in C++ to make an array of references. To test check following array :

int &arr[] = {&a, &b, &c};

This will give an error.

Advertisement