What is the difference between int and long?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/271076/what-is-the-difference-between-an-int-and-a-long-in-c">What is the difference between an int and a long in C++?</a><br>
  <a href="http://stackoverflow.com/questions/900230/difference-in-long-vs-int-data-types-in-c">difference in long vs int data types in C++</a>  </p>
</blockquote>



<p>In c++ which is the diference between the int and long data type. Wrote the following code:</p>

<pre><code>int _tmain(int argc, _TCHAR* argv[])
{
    cout&lt;&lt;"Int_Max = "&lt;&lt;INT_MAX&lt;&lt;endl;
    cout&lt;&lt;"Int_Min = "&lt;&lt;INT_MIN&lt;&lt;endl;
    cout&lt;&lt;"Long_Max = "&lt;&lt;LONG_MAX&lt;&lt;endl;
    cout&lt;&lt;"Long_Min = "&lt;&lt;LONG_MIN&lt;&lt;endl;
}
</code></pre>

<p>And this were the results...</p>

<pre><code>Int_Max = 2147483647
Int_Min = -2147483648
Long_Max = 2147483647
Long_Min = -2147483648
</code></pre>

<p>I'm confused.</p>
