Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C++ Programming
»
References
Which of the following statements is correct? We can return a global variable by reference. We cannot return a local variable by reference.
Only 1 is correct.
Only 2 is correct.
Both 1 and 2 are correct.
Both 1 and 2 are incorrect.
Correct Answer:
Only 2 is correct.
Next Question→
More Questions from
References
Which of the following statements is correct? Once the variable and the reference are linked they are tied together. Once the reference of a variable is declared another reference of that variable is not allowed.
Reference is like a _____.
Which of the following statement is correct about the references?
Which of the following statement is correct?
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 statement is correct?
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?
Which of the following statement is correct?
Which of the following statement is correct?
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment
Join Discussion
Discussion & Comments