Dynamic vs Fixed Arrays. Memory is used to initialize the array without it the compiler will show an error.
Address literals: how two characters of an address make 40 bytes
pragma solidity ^0.8.4;
// this is a storage dynamic array its persistent on storage, not memory(not wiped off)
contract arrays {
uint[] test=[1, 2, 3];
function get() public view returns(uint256 memory){
return test;
}
}
bscscan.com: sample of smart contracts already written
array members: push, length, they’re only available on given circumstances