title: Pointers in c++
body: <p>I am new to C++ and I found this code in a tutorial. I am perplexed to find double stars instead of a single star used for defining a pointer. Is this a substitute for two dimensional array? If yes how?</p>
  
  <p>For example:</p>
  
  <pre><code>int* A = new int[5];
  </code></pre>
  
  <p>makes an array strip , how does it happen in <code>int **A</code>?</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int main () {
  
   int **A;
      A = new int*[10] ;
  
      for (int j=0; j&lt;20; j++) 
         A[j] = new int[20] ;
  
      for (int i=0; i&lt;10; i++) 
         for (int j=0; j&lt;20; j++) 
          A[i][j] = (i+1)*(j+1);
  
  
      for (int i=0; i&lt;10; i++) {
         for (int j=0; j&lt;20; j++) 
          cout &lt;&lt; A[i][j] &lt;&lt; " ";
         cout &lt;&lt; endl;
      }
  
      cout &lt;&lt; endl;
  
  } 
  </code></pre>