c++ maximum of number types
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/589575/size-of-int-long-etc">size of int, long, etc</a><br>
  <a href="http://stackoverflow.com/questions/4329777/is-long-guaranteed-to-be-at-least-32-bits">Is `long` guaranteed to be at least 32 bits?</a>  </p>
</blockquote>



<p>I wanted to find out maximum of each data type for my computer. the code is :</p>

<pre><code>int main() {
    using namespace std;
    cout &lt;&lt; numeric_limits&lt;int&gt;::max() &lt;&lt; endl;
    cout &lt;&lt; numeric_limits&lt;long&gt;::max() &lt;&lt; endl;
    cout &lt;&lt; numeric_limits&lt;long long&gt;::max() &lt;&lt; endl;

    return 0;
}
</code></pre>

<p>which prints:</p>

<pre><code>2147483647
2147483647
9223372036854775807
</code></pre>

<p>question 1: why <code>int</code> and <code>long</code> are same?</p>

<p>question 2: above output is from VS2010 on 64bit. Is my c++ program running as 64bit?</p>
