Functions can be declared to return a reference type. There are reasons to make such a declaration/Which of the following reasons are correct?
  1. The information being returned is a large enough object that returning a reference is more efficient than returning a copy.
  2. The type of the function must be a R-value.

A Both 1 and 2 are incorrect.

B Only 1 is correct.

C Only 2 is correct.

D Both 1 and 2 are correct.

ANS:C - Both 1 and 2 are correct.

No answer description is available. Let's discuss.

img not found

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.