title: 2d / multidimensional array char
body: <p>Here is my code</p>
  
  <pre><code>     #include &lt;stdio.h&gt;
       #include &lt;string.h&gt;
       #include &lt;stdlib.h&gt;
  
   int main ()
   {
  
  
  
  
   int i,k;
   char a[4][2] = { {'*','*'}, {'*','*'}, {'*','*'}, {'*','*'}};
  
  
   /* output each array element's value */
   for ( i = 0; i &lt; 4; i++ ) {
  
    for ( k = 0; k &lt; 2; k++ ) {
       printf("%c ", a[i][k] );
    }
    printf("\n");
    }
    return 0;
    } 
  </code></pre>
  
  <p>I would like to know how to replace a character from a 2d array with another character with user input? for example if the user wants to replace the asterisk at [0][0] with an F the output would look like this:</p>
  
  <pre><code>         F *
           * *
           * *
           * *
    `      
  </code></pre>
  
  <p>I would really appreciate it because I can't seem to find any example of this anywhere. Thanks</p>