title: C Replace one character in an char array by another
body: <p>I have the following C Code</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  int main(void){
      char c[] = "ABC"
      printf("%s ", c);
      c[1] = 'B';
      printf("%s", c);
      return 0;
  }
  </code></pre>
  
  <p>The output I want is <code>ABC BBC</code> but the output I get is <code>ABC ABC</code>. How can I replace the first character in an String / char array?</p>