I was learning about arrays in Solidity . I am not getting exactly when should I create an array in memory and when in storage . So far I only know that an array created in memory is fixed in size and I cannot use push and pop methods in that case .
Can anyone explain the difference between an array created in memory ( what it is , how it behaves , gas costs etc . ) and an array created in storage ?
Reference : https://www.youtube.com/watch?v=vTxxCbwMPwo