title: Why is the size of this struct 40 when it seems like it should be 12/24?
body: <p>In a project with old code I'm having to deal with, I have this Coord structure. As best as I can tell it's size should be either 12 bytes, or 24. However, <code>sizeof(Coord</code> returns 40. Could someone please explain where this extra size comes from?</p>
  
  <pre><code>struct Coord
  {
      Coord();
      float inate[3] = {0,0,0};
      float&amp; x = inate[0];
      float&amp; y = inate[1];
      float&amp; z = inate[2];
      Coord operator*(const float&amp;);
      Coord operator=(const Coord&amp;);
      Coord operator=(const float[3]);
      Coord dot(const Coord&amp; c);
      Coord cross(const Coord&amp; c);
  };
  </code></pre>