DEV Community

Discussion on: Ethereum smart contract development using Solidity

Collapse
 
vchiranjeeviak profile image
Chiranjeevi Tirunagari

There is no such thing called references in solidity. But if we just pass the value of it, we can only use it, but can't change the actual value of the variable. So, we need to pass the address along with it's value, if we want to change it. This can be understood as pass by reference where we are actually passing value but along with it's address. I mentioned passing value with address as pass by reference as it is close to it which might be easy to understand.