title: Not able to read elements of array of pointer expcept of 0th element
body: <p>i have a array and want to pass it to a function which wants array of pointer as an argument when i pass it with the reference it only gives me the first element of that array. What am i doing wrong? Here is my code:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  struct abc{
      int a;
  };
  
  void a(struct abc* j[]){
      printf("%d\n",j[1]-&gt;a);
  }
  
  int main()
  {
      struct abc* k = malloc(2 * sizeof(struct abc));
      k[0].a = 2;
      k[1].a = 3;
      a(&amp;k);
      return 0;
  }
  </code></pre>
  
  <p>Thanks in advance</p>