title: Copy struct into char array
body: <p>I am learning C and have a question about structs.  </p>
  
  <p>I have a  </p>
  
  <pre><code>struct myStruct {
      char member1[16];
      char member2[10];
      char member3[4];
  };
  </code></pre>
  
  <p>This should take at least 30 bytes of memory to store. Would it be possible to copy all of this data into the variable <code>char foo[30]</code>? What would be the syntax?</p>