In C++ what is the difference between return by value and return by reference in the function?

abc abc 351 Reputation points
2022-05-08T13:08:17.777+00:00

Hi,

In C++ what is the difference between return by value and return by reference in the function?

When we need to use return by value and return by reference in the function?

Thanks.

Developer technologies | C++
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.