Multiple choice

A function may return a reference or a pointer variable also.

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In C++, functions can return references or pointers to variables, allowing for modifications to the original data through the return value. This is useful for operator overloading and chaining operations. However, care must be taken not to return references to local variables that go out of scope.