If I don't specify the function variable as storage or memory, what should be the default keyword?
2 Answers
Variable state defining is important for new versions of solidity. Storage variable stores permanent storage in blockchain and is quite expensive to use. Memory variable is stored temporarily and is cheaper to use.
If you are declaring a variable that is storing a string then it is an error if you do not specify the variable as storage