title: modifying 2d array in a function
body: <p>So I've written a function that turns a 2D array 90 degrees and I've been told on IRC that I can't pass 2D array by reference (for example void test(char A[][10]&amp;)) and that I just should pass my array the usual way, however when I do that, this function doesn't change the actual array. So how do I modify my original array in a function ? </p>
  
  <pre><code>void one(char A[][10], int N)
  {
      char B [10][10];
      for (int i = 0; i &lt; N; i++)
          for (int j = 0; j &lt; N; j++)
              B[j][N-i-1] = A[i][j];
      A = B;
  }
  </code></pre>