title: How to initialize a single element from an array of structures in C?
body: <p>I am working with a code which reads many files and stores the count of keywords in it. A part of the code is as follows:</p>
  
  <pre><code>struct files
  {
      struct keyword
      {
          char keyname[10];
          int count;
      }key[32];            //for 32 keywords in C
  }file[10];    
  </code></pre>
  
  <p>How can I initialize the keyword structure for all the 10 files as <code>{"void",0,"int",0,.....etc}</code> ?
  Is there a method by which I can initialize all the 10 files in a loop by initializing each structure element at a time?    </p>