title: Issue with managing pointer to int array
body: <p>I'm having some problem with my code, it crashes when I enter the value of <code>n</code>.</p>
  
  <p>I have entered what I think the code should do.</p>
  
  <p>I guess there is an issue with the pointer to <code>*a[i]</code> which cause the program to crash.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  
  void assign_zero(int * a[], int * n){ // fetches value of a and n
      int i;
      for (i = 0; i &lt; *n; i++)
          *(a)[i] = 0; // puts every value in the array to 0 (a[3] = {0,0,0,0})
  }
  
  int main(){
      int n;
  
      printf("Choose value of n: ");
      scanf("%i", &amp;n); // stores the int at n's adress
      int a[n]; // sets the length of the array
  
      assign_zero(&amp;a, &amp;n); // sends the adress of a and n to assign_zero
  
      int x;
      for (x = 0; x &lt; n; x++)
      printf("%i", a[x]); // prints 00000... depending of n's value
  
      return 0;
  }
  </code></pre>