Default Value
Local and state variables have default values.
Here are the default values for data types that we have covered so far.
type
default value
int
0
uint
0
bool
false
address
0x0000000000000000000000000000000000000000
bytes32
0x0000000000000000000000000000000000000000000000000000000000000000
Last updated
Was this helpful?