title: C Struct Unioned with a Char Array
body: <p>I'm trying to receive a record in binary from a PIC programmed in C.</p>
  
  <p>The data sent is structured so:</p>
  
  <pre><code>typedef struct{int32 num1;
                float num2,num3,num4,num5;
                ...
                }RecordStructure;
  
  typedef union{RecordStructure Record; char Array[48];} My_Rec_Structure;
  </code></pre>
  
  <p>My question is this:</p>
  
  <p>Do the first 4 bytes/chars belong to the <code>int32 num1</code>, the next 4 to <code>float num2</code> and so on?  </p>
  
  <p>If so I'm having major issues with transmission;  if not, how do I discern where the data ended up?</p>