title: What does the C++ standard state the size of int, long type to be?
body: <p>I'm looking for detailed information regarding the size of basic C++ types.
  I know that it depends on the architecture (16 bits, 32 bits, 64 bits) and the compiler.</p>
  
  <p>But are there any standards for C++?</p>
  
  <p>I'm using Visual Studio 2008 on a 32-bit architecture. Here is what I get:</p>
  
  <pre><code>char  : 1 byte
  short : 2 bytes
  int   : 4 bytes
  long  : 4 bytes
  float : 4 bytes
  double: 8 bytes
  </code></pre>
  
  <p>I tried to find, without much success, reliable information stating the sizes of <code>char</code>, <code>short</code>, <code>int</code>, <code>long</code>, <code>double</code>, <code>float</code> (and other types I didn't think of) under different architectures and compilers.</p>