title: C++ passing an array pointer as a function argument
body: <p>I'm trying to use pointers of arrays to use as arguments for a function which generates an array.</p>
  
  <pre><code>void generateArray(int *a[],  int *si){
    srand(time(0));
    for (int j=0;j&lt;*si;j++)
         *a[j]=(0+rand()%9);
  } //end generateArray;
  
  int main() {
    const int size=5;
    int a[size];
  
    generateArray(&amp;a, &amp;size);
  
    return 0;
  } //end main
  </code></pre>
  
  <p>But when I compile this this message appears:</p>
  
  <pre><code>cannot convert `int (*)[5]' to `int**' for argument `1' to `void generateArray(int**, int*)'
  </code></pre>