title: Is the memory allocated for struct members continguous? What if a struct member is an array?
body: <p>In C/C++ suppose  I define a simple struct named <code>test</code> as follows. </p>
  
  <pre><code>struct test
  {
     double height;
     int    age;
     char   gender;
  }
  </code></pre>
  
  <p>For a specific instance of this struct  say <code>test A</code> are <code>A.height, A.age, A.gender</code> contiguous
  in memory? </p>
  
  <p>More generally, how do the layouts in memory for a Structure of Arrays and an Array of structures look like? A picture would be really helpful. </p>