title: How could I initialize a array of struct to null?
body: <pre><code>    typedef struct 
      {
          char*title;
          int year;
          int length; //in minutes
      } record;
  
      record list[1024];
      int j;
      for(j=0;j&lt;1024;++j)
          list[j]=NULL;
  </code></pre>
  
  <p>I am trying to initialize a array of struct and let each element point to null initially and gcc gives me a error "incompatible types when assigning to type 'record' from type 'void*". How could I solve it? The purpose of doing this is when I access a element I am able to see if it has data or just empty. </p>