title: C Programming 2D Array Problems
body: <p>I am learning C before I start learning C++ so I am very new to programming. I was playing around with 2D arrays and I sort of understand it. However I can't seem to figure out how to do this:</p>
  
  <p><code>int x, y, z[4][4], i, j;</code></p>
  
  <p>Where x = 10, and y = 10;</p>
  
  <pre><code>for (i=0; i&lt;4; i++)
  {
    for(j=0;j&lt;4;j++)
    {
      z[i][j]=z[x][[y];
    }
  }
  </code></pre>
  
  <p>I want the output to be:</p>
  
  <p>When <code>i=0</code> and <code>j=0</code> print z[x][y]; As in print 10, 10.</p>
  
  <p>Any help would be appreciated.</p>