title: Why is the Parent String printing by itself when I'm printing a substring of it?
body: <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  int main()
  {
      char s[40]=&quot;Who are you tell me that I can not code?&quot;;
      char c=s[8];
      char st[2];
      st[0]=s[0],st[1]=s[1];
      printf(&quot;%s \n&quot;,st);
      return 0;
  }
  </code></pre>
  <p>Why is it printing my original string 's' also when I'm printing st?</p>
  <p>Output:-</p>
  <pre><code>WhWho are you tell me that I can not code?►
  
  Process returned 0 (0x0)   execution time : 0.048 s
  Press any key to continue.
  </code></pre>