title: Changing value of 2D array coordinate
body: <p>I have created a 2D array of zeros using while loops and I would like to change specific coordinates into 1s. I have tried manually typing in coordinates but for some reason it does not affect the output.</p>
  <pre><code>#include &lt;stdio.h&gt;
  
  void print(int map[10][10]);
  
  int main (void) {
      int map[10][10] = {};
      map[4][4] = 1;
      print(map);
      return 0;
  }
  
  void print(int map[10][10]) {
      int row = 0;
      while (row &lt; 10) {
          int col = 0;
          while (col &lt; 10) {
              printf(&quot;0 &quot;);
              col++;
          }
          printf(&quot;\n&quot;);
          row++;
      }
  }
  </code></pre>
  <p>I was intending for coordinate of the 5th column and 5th row to turn into a 1, but the array printed is still a zero. (^^this is written in c)</p>
  <p>Thank you</p>