title: error: expected expression before
body: <pre><code>struct student{
  char name[100];
  int id;
  char *department;
  struct result{
    float gpa;
    char grade;
   };
  }W[1],R[1];
  W[] = {{"Saud Farooqui",137,"Electronics",3.05,'A'},
        {"Talha Farooqui",129,"Civil",3.5,"A+"}};
  </code></pre>
  
  <p>When I am compiling it, compiler gives an error, the error is,</p>
  
  <pre><code>error: expected expression before ‘]’ token
  W[] = { 
  </code></pre>
  
  <p>what is the problem? I think I am right but why is it giving the error?</p>