title: Checking if an array of structs is empty or not
body: <p>How do I do this? For example</p>
  
  <pre><code>        typedef struct node
       {   int data;
           struct node* next;
       }node;
  </code></pre>
  
  <p>Is my node, and in my main I have</p>
  
  <pre><code>       int main(){
            node* array[10];
            if (node[0].data == 0){
             ...
  
                                  }
  </code></pre>
  
  <p>I am not really sure what I need to do here. I want to be able to check if these entries in the array have been modified already. How would I do this? I have tried the -> operator instead of . which is causing me some confusion because I am working with an object aren't I? I am uncertain of this.</p>
  
  <p>Following advice this is what I now have.</p>
  
  <pre><code> int main() {
   struct node* arr[10] = { 0 } ;
     addTo(data, arr);
              }
  
  
     addTo(int data, node* arr){
          if (arr[0] == NULL)
                               }
  </code></pre>
  
  <p>The last line is a segmentation fault.</p>