title: Why such output?
body: <p>I was doing an example of the C language and tried example shown below. I thought it should print the string <strong><code>Study Tonight strings</code></strong>, but it is giving the output <strong><code>Study Tonight stringsStudyTonight</code></strong> Why it is so ? I thought that even the <code>char str[7]</code> array size is right.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  /*
   * 
   */
  int main() {
      char ch[20]="Study Tonight ";
      printf("%s",ch);
      char str[7]="strings";
      printf("%s",str);
      return (EXIT_SUCCESS);
  }
  </code></pre>