title: Why my printf in C removes an element of array?
body: <p><strong>Hello  guys, i have this code:</strong></p>
  <pre><code>#include &lt;stdio.h&gt;
      int main()
      {
      int numberPosition=8;
      char senha[1000]=&quot;01000hello&quot;;
      printf(&quot;%i\n&quot;, numberPosition);
      senha[numberPosition]=&quot;&quot;;
      printf(&quot;\n%s\n&quot;, senha);
      
      return 0;
      }
  </code></pre>
  <p>When I executes my code my return is: <em>01000heo</em>.</p>
  <p>However if I delete the line <code>&quot;printf(&quot;%d\n&quot;, numberPosition);&quot;</code> my return is: <em>01000helo</em></p>
  <p><strong>Why printf deletes an element from my array?</strong></p>