title: How can I assign a two dimensional array to a pointer?
body: <p>I want to assign an array to a pointer so I can use it </p>
  
  <pre><code>int arrayA[2][2] = {{1,2},{3,4}};
  int arrayB[3][1] = {{1},{2},{3}};
  int** arrayC;
  if(case1)
     arrayC = arrayA;
  if(case2)
     arrayC = arrayB;
  //work with arrayC
  </code></pre>
  
  <p>What could I do?</p>
  
  <p><strong>Edit: Found another solution. See Answers</strong></p>