title: initializing string to null termination in order to avoid memset
body: <p>I wrote this code:</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  
  int main(void)
  {
      char c[10]="";                //Q
  
      if(c[2]=='\0')
          printf("hello");
      return 0;
  }
  </code></pre>
  
  <p>In the line <code>//Q</code> is it the entire string set to <code>'\0'</code> or just the <em>0th</em> index? Though on checking the output it prints <strong>hello</strong> but I am not sure if its some value by fallacy or by design? </p>