C++ Programming :: References
-
Which of the following statement is correct?
-
Which of the following statements is correct?
- Once a reference variable has been defined to refer to a particular variable it can refer to any other variable.
- A reference is not a constant pointer.
-
Functions can be declared to return a reference type. There are reasons to make such a declaration/Which of the following reasons are correct?
- The information being returned is a large enough object that returning a reference is more efficient than returning a copy.
- The type of the function must be a R-value.
-
Which of the following statements is correct?
- Change a reference changes the referent.
- We can create an array of references.
-
Which of the following statement is correct about the references?
-
Which of the following statement is correct?
-
Which of the following statements is correct?
- A reference is not a constant pointer.
- A referenced is automatically de-referenced.
-
Which of the following statements is correct?
- An array of references is acceptable.
- We can also create a reference to a reference.
-
Which of the following statement is correct?
A.
Once a reference variable has been defined to refer to a particular variable it can refer to any other variable.
|
B.
A reference is indicated by using && operator.
|
C.
Once a reference variable has been defined to refer to a particular variable it cannot refer to any other variable.
|
D.
A reference can be declared beforehand and initialized later.
|