title: Inserting characters in the middle of char array
body: <p>I have a char array filled with some characters. Let's say I have "HelloWorld" in my char array. (not string. taking up index of 0 to 9)</p>
  
  <p>What I'm trying to do is insert a character in the middle of the array, and push the rest to the side to make room for the new character that is being inserted.</p>
  
  <p>So, I can make the char array to have "Hello.World" in it.  </p>
  
  <pre><code>char ch[15]; // assume it has "HelloWorld" in it
  for(int i=0; i&lt;=strlen(ch)-1; i++) {
      if(ch[i]=='o' &amp;&amp; ch[i+1]=='W') {
          for(int j=strlen(ch)-1; j&gt;=i+2; j--) {
              ch[j] = ch[j-1]; // pushing process?
          }
          ch[i+1] = '.';
          break;
      }
  }
  </code></pre>
  
  <p>Would this work? Would there be an easier way? I might just be thinking way too complicated on this.</p>