title: How a bool type variable is stored in memory? (C++)
body: <p>bool test;</p>
  
  <p><code>sizeof(test) = 1</code> if using VS 2010. Since every C++ data type must be addressable,
  the "test" bool variable is 8-bits(1 byte).</p>
  
  <p>My question is that does the "test" variable really occupy 1 byte in memory?</p>
  
  <p>Is there any implementation skill that can make the bool data type occupy only
  one bit? If yes, can you give me an example?</p>
  
  <p><code>bool test1[32]</code>(in VS 2010), 
  <code>int test2</code>(in VS 2010)</p>
  
  <p>Do <code>test1</code> and <code>test2</code> occupy the same memory?</p>