title: Rotate matrix without using square brackets "[ ]"
body: <p>I need to rotate a matrix and call the funcion without using <code>[]</code>,
  I can't even think on a solution.</p>
  
  <pre><code>void _90DegClockwise(int *pS, int row, int col) {
      for (int i = 0; i &lt; row; ++i)
      {
          for (int j = i + 1; j &lt; col; j++) {
              int temp;
              temp = (int)(pS);
              *((int*)((pS + i) + j)) = (int*)((pS + j) + i);
             (int*)((pS + j) + i) = temp;
          }
      }
  }
  </code></pre>
  
  <p>I don't know how to insert a value to matrix or how to swap</p>