title: Array type has incomplete element type , could not pass struct array to the function
body: <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  int main()
  {
      int n;
      printf("how many students:\n");
      scanf("%d",&amp;n);
     struct std
      {
          int rollNo;
          char FirstName[15];
          char SecondName[15];
          char fatherName[20];
          char motherName[20];
          char institute [50];
          char deptt[20];
          int sem;
          float cgpa;
          float sgpa;
          float height;
          float weight;
          char citizenship[10];
          char lang1[15];
          char lang2[15];
          int no_siblings;
          char sub1[15];
          char sub2[15];
          char sub3[15];
          float marks_12;
  
      }Array[n],*s;
      writes(&amp;s,n,Array);
      return 0;
  }
  
  void writes(struct std *s,int n,struct std Array[n])
  {   int i;
  
      for(i=0;i&lt;n;i++)
      {
          printf("serially enter \n roll-no,\n first name,\n second name,\n father's name,\n mother's name,\n institute name,\n department,\n semester,\n cgpa,\n sgpa,\n height,\n weight,\n citizenship,\n lang1,\n lang2,\n no of siblings,\n sub1,\n sub2,\n sub3,\n class 12 board's %age marks scored\n");
          scanf("%d",Array[i].rollNo);
          gets(Array[i].FirstName);
          gets(Array[i].SecondName);
          gets(Array[i].fatherName);
          gets(Array[i].motherName);
          gets(Array[i].institute);
          gets(Array[i].deptt);
      }
  
  }
  </code></pre>
  
  <p>i am starting to write a code where i can pass an array of the structure std to a function to take inputs but I am getting an error saying "Array type has incomplete element type", </p>
  
  <p>i am beginner, i tried a lot but could not solve it. Please help.</p>