title: The end character `\0` is it considered as one character or two characters?
body: <p>As I was trying to understand more the behavior of some functions I took two examples :</p>
  
  <pre><code>char str[]="Hello\0World"
  </code></pre>
  
  <p>and</p>
  
  <pre><code>char str[100];
  scanf("%s",str);// enter the same string "Hello\0world"
  </code></pre>
  
  <p>The problem here that in the first example I got <code>Hello</code> and in the second I got <code>Hello\0world</code> </p>
  
  <p>why are the two characters <code>\</code> and <code>0</code> interepreted as an end character of string in the first and not in the second one  ? </p>