mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update frequently-asked-questions.rst
This commit is contained in:
parent
5ffd119990
commit
d45629d909
@ -304,8 +304,9 @@ There are defaults for the storage location depending on which type
|
||||
of variable it concerns:
|
||||
|
||||
* state variables are always in storage
|
||||
* function arguments are always in memory
|
||||
* local variables are always in the stack but reference storage
|
||||
* function arguments are in memory by default
|
||||
* 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
|
||||
|
||||
Example::
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user