title: C struct initialization with char array
body: <p>I have a C struct defined as follows:</p>
  
  <pre><code>struct Guest {
     int age;
     char name[20];
  };
  </code></pre>
  
  <p>When I created a <code>Guest</code> variable and initialized it using the following:</p>
  
  <pre><code>int guest_age = 30;
  char guest_name[20] = "Mike";
  struct Guest mike = {guest_age, guest_name};
  </code></pre>
  
  <p>I got the error about the second parameter initialization which tells me that <code>guest_name</code> cannot be used to initialize member variable <code>char name[20]</code>.</p>
  
  <p>I could do this to initialize all:</p>
  
  <pre><code>struct Guest mike = {guest_age, "Mike"};
  </code></pre>
  
  <p>But this is not I want. I want to initialize all fields by variables. How to do this in C?</p>