title: Which end of a bit field is the most significant bit?
body: <p>I'm writing a C++ application for Windows XP/Vista/7 using Visual Studio 2008.  Some of my structures use a bit field, as shown in the example.</p>
  
  <pre><code>typedef struct myStruct_tag
  {
      BYTE myVar1;
      WORD myVar2;
      WORD myVar3;
      union
      {
          struct
          {
              BYTE           :1;
              BYTE field1    :1;
              BYTE field2    :1;
              BYTE reserved  :5;
          } myBitField;
          BYTE myVar4;
      };
      BYTE myVar5;
      BYTE myVar6;
  } myStruct_t;
  </code></pre>
  
  <p>Which end of the field is the most significant bit?</p>