title: How to store "\0" in C++ char array?
body: <p>According to the C++ char array rules it ends with \0 null character. If i want to save and print <code>\0</code> in C++ char array how to do it    </p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  int main()
  {
      char name[] = {'H', 'o', 'n', 'd', 'a', '\0'};
      cout &lt;&lt; name; // how to print Honda\0
      return 0;
  }
  </code></pre>