title: How to calculate the non-zero elements in the array?
body: <p>How to calculate the non-zero elements in the array - without warning?
  I have simple code:</p>
  
  <pre><code>int i;
  char *symbols[1000];
  for(i = 0; i &lt; 10; i++){
     symbols[i] = "Hi :-)";
  }
  
  i++;
  symbols[i] = NULL;
  
  int mumberofelements = 0;
  
  for(i=0; i &lt; 1000; i++){
     if(symbols[i] != NULL){ // WARNING comparison between pointer and integer [enabled by default]
     numberofelemets++;
     }
  }
  </code></pre>
  
  <p>But I have warning:</p>
  
  <blockquote>
    <p>comparison between pointer and integer [enabled by default]</p>
  </blockquote>
  
  <p>How can I fix it?</p>