title: int variable is not able to store large values
body: <pre><code>#include &lt;iostream&gt;
  
  int main()
  {
      int a = 999999999999999999;
      std::cout &lt;&lt; a &lt;&lt; std::endl;
      std::cout &lt;&lt; 999999999999999999 &lt;&lt; std::endl;
      return 0;
  }
  </code></pre>
  
  <p>The output of above program is <code>-1486618625</code> and  <code>999999999999999999</code>.</p>
  
  <p>In both the <code>cout</code> we are giving the same number, so why are the outputs different?</p>
  
  <p>Also are <code>long long int a=999999999999999</code> same as <code>int a=9999999999999999ll</code>?</p>