Binary tree -right view

why are we passing reference (&) in privious lecture?

Hello @gk1293123 we pass by reference when we are making all the changes in that memory address.
This saves our time, if we pass by value it will copy everytime we will make call.

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.