title: comparing a char in a dynamic array with a char
body: <p>I want to print a dynamic char array which has \0 characters before the actual end.
  I am printing it by using <code>cout</code> for every index.</p>
  
  <pre><code>for (int i = 0; i &lt; size; i++) {
  
          std::cout &lt;&lt; content[i];
  }
  </code></pre>
  
  <p>But when I come by a \0 character I want to detect it, so I'm using:</p>
  
  <pre><code>if (content[i] == 0) {
       std::cout "zero";
  }
  </code></pre>
  
  <p>I tried to do </p>
  
  <pre><code>if (content[i] == "\0") {
       std::cout "zero";
  }
  </code></pre>
  
  <p>But I can't do that comparison because you apparently cannot compare a <code>const char*</code> and a <code>char</code>.</p>
  
  <p>What did I do wrong? How do I make this comparison?</p>
  
  <p><code>char</code> array btw:</p>
  
  <pre><code>char * content = new char[size];
  file.seekg(0);
  file.read(content, size);
  </code></pre>