title: issue with update on 2D array of characters
body: <p>I am having a hard time understanding why in the following C program, I am not able to properly return an array of characters. The issue seems to be in the line:</p>
  <pre><code>results[indx][indx2]='X';
  </code></pre>
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  
  const char *PrintPlaceholder(char *words[], char *results[], int wordsNumber);
  
  
  int main(){
      char *word[]={&quot;Hello&quot;,&quot;Fun&quot;};
      char *results[2];
      
      
      PrintPlaceholder(word, results,2);
      for (size_t indx=0; indx&lt;2; indx++){
      printf(&quot;Output is %s\n&quot;,results[indx]);
      
      }
      
      
      return 0;
  }
  
  
  
  const char *PrintPlaceholder(char *words[],char *results[], int wordsNumber){
          
          size_t wordLength;
          for (size_t indx=0; indx&lt;wordsNumber; indx++){
              
                      
          wordLength=strlen(words[indx]);
          printf(&quot;Word length is %d\n&quot;,wordLength);
          
          for (size_t indx2=0; indx2&lt;wordLength; indx2++){
              printf(&quot;2nd for loop&quot;);
              
              results[indx][indx2]='X';
              printf(&quot;Char is %c &quot;,results[indx][indx2]);
          }
          printf(&quot;\n&quot;);
          
          }
              
      
      }
  </code></pre>
  <p>Many thanks</p>