title: About Null character in C language
body: <p>This is my program:
  <a href="https://i.stack.imgur.com/0JW7d.jpg" rel="nofollow noreferrer">Click link to see the program</a>
  In this program,</p>
  <pre><code>char c[5] = &quot;hello\0world&quot;;
  </code></pre>
  <p>When I print the string <code>c</code> using the following line:</p>
  <pre><code>printf(&quot;\nstring c=%s&quot;, c);
  </code></pre>
  <p>It gives the following output (with smile symbol at the end, not exactly like the symbol below, but I can say it is a smiley symbol:</p>
  <pre><code>string c=hello(•‿•)
  </code></pre>
  <p>Why doesn't it print <strong>hello</strong>
  In the output? because the size of string is only 5?</p>
  <p>Thanks in advance.</p>