title: What is the difference between pure and view modifiers in solidity?
body: <p>The code results in same output.</p>
  
  <pre><code>pragma solidity ^0.5.0;
  contract mycontract
  {
  
     function add(uint c, uint d) public pure returns(uint)
    { uint e=c+d;
  
  
     return e;
  
    } 
     function add(uint j, uint k) public view returns(uint)
    { uint f=j+k;
  
  
     return f;
  
    } 
  
  }
  </code></pre>