August 2019
Intermediate to advanced
486 pages
13h 52m
English
In Solidity, all of the state variables and local variables have a data location specified by default, or you can explicitly define a chosen data location. These data locations are called memory and storage. You can override the default data location by explicitly specifying along with the declaration of the variable. You must define a data location when using complex data types such as arrays, bytes, and structs. Following is the definition for memory and storage: