Return by reference ke kuch aur example h?

is return by reference only applicable for member functions
or normal functions can also behave this way ???
please gimme some examples …

hello @anujsharmabadboy

u can define in normal function as well.
for example-> here

but u cant return reference to local variable because that wii get destroyed when call will return .