Regarding returning in functions

I want to ask that if we return something from a function (let an integer) is its copy is created. I basically want to know the difference between return by value and return by refrence

In pass by value, a copy is created, but in pass by reference. Address of that variable is sent in the function call.
check this for better visualization:
pass-by-reference-vs-pass-by-value-animation .

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.