Operator overloading

in operator overloading concept,how can we say that passing the parameter by reference will not take up extra spaces??
can you elaborate please as i am not getting…

@Nisha21 passing by reference means that we are sharing the address of the variable, so that both of those variables are now pointing to the same memory block. Otherwise a copy of that variable is made but in this case no copy is made hence no extra space is used.

thank you…i got it now

1 Like

@Nisha21 please mark your doubt as resolved.