In Solidity Defaults For The Storage Location Depending On Which

[Solved] In Solidity Defaults For The Storage Location Depending On Which | Solidity - Code Explorer | yomemimo.com
Question : In solidity defaults for the storage location depending on which type of variable it concerns

Answered by : john-pinto

'state variables' are always in 'storage'
'function arguments' are always in 'memory'
local variables of 'struct', 'array' or 'mapping type' reference 'storage' by default
local variables of value type (i.e. neither array, nor struct nor mapping) are stored in the stack

Source : https://ethereum.stackexchange.com/questions/1701/what-does-the-keyword-memory-do-exactly | Last Update : Thu, 14 Apr 22

Answers related to in solidity defaults for the storage location depending on which type of variable it concerns

Code Explorer Popular Question For Solidity