Here is an implementation: I am running delete keyword on two different struct variables. on storage variable remix gives an error but not on memory. Why is this so?
pragma solidity ^0.4.0;
contract myContract
{
struct abc {
uint8[] m;
uint a ;
}
function myFucn() returns(bool)
{
abc storage b;
abc memory a;
delete a;
delete b; // error unary operator cannot be applied to storage pointer.
return true;
}
}