title: Assign integer value to heap
body: <pre><code>  #include&lt;iostream&gt;
    using namespace std;
    int main() 
    { 
      int i= new int;
      cout&lt;&lt;i;
      return 0;
    }
  </code></pre>
  
  <p>when i tried to assign int i value to heap it shows 
  <b>error: invalid conversion from 'int*' to 'int' </b></p>
  
  <p>when i assign value to int pointer then it assign to it.why we cannot assign value to int to heap.Yes i know as much as possible avoid assigning value to heap.
  I looked many stackoverflow post everyone explained about int *p=new int[10];
  Please someone explain this to me.
  Thanks for your help.</p>