title: Comparison between pointer and integer in C
body: <p>I have a bit stupid question about program in C. My compiler says me:
  <em>warning: comparison between pointer and integer</em>. I really don't know why.
  I only want to write each char on the screen.</p>
  
  <p>My code:</p>
  
  <pre><code>int i = 0;
  char str[50] = {'s', 'a', 'm', 'p','l','e'}; //only for test
  while (str[i] != NULL) {
      putchar(str[i]);
      i++;
  }
  </code></pre>
  
  <p>Can you help me please? I didn't find any usefull answer on the internet.</p>