title: Error during implementation of quickSort algorithm in c++:- "error: cannot convert 'int*' to 'int**'....."
body: <p>The full error is as follows:- "|error: cannot convert 'int*' to 'int**' for argument '1' to 'void quickSort(int**, int, int)'|"</p>
  
  <p>MY whole code is below:</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  int Partition (int *A[], int p, int r) {
      int x = *A[r];
      int i = p-1;
      for (int j=0; j&lt;=r; j++){
          if(*A[j]&lt;=x){
              i++;
              int save=*A[j];
              *A[j] = *A[i];
              *A[i] = save;
          }
      }
      int save2=*A[i+1];
      *A[i+1]=*A[r];
      *A[r]=save2;
      return (i+1);
  }
  
  void quickSort(int *A[], int p, int r) {
      if (p&lt;r){
      int q = Partition(A, p, r);
      quickSort(A, p, (q-1));
      quickSort(A, (q+1), r);
      }
  }
  
  
  
  int main() {
      int RR[] = {2,8,7,1,3,5,6,4};
      int y=sizeof(RR)/sizeof(int)-1;
      cout &lt;&lt; y &lt;&lt; endl;
      int *QQ = RR;
      cout &lt;&lt; *QQ &lt;&lt; endl;
      quickSort(QQ, 0, y);
  
      return 0;
  }
  </code></pre>
  
  <p>This is an implementation that I tried myself from a pseudo code. I'm new to programming so it would be a great help if you could illustrate a little of why this error occurred.</p>
  
  <p>Thanks in advance</p>