title: Integer overflow and Multiplication of integers in c++
body: <pre><code>    int y ;
      y = 7000000000*1.0;
  </code></pre>
  
  <p>This does not give an error in cpp</p>
  
  <p>Though</p>
  
  <pre><code>    int y ;
      y = 7000000000;
  </code></pre>
  
  <p>This leads to integer overflow</p>
  
  <p>Can anyone please explain these two scenarios. </p>