title: Expected primary expression before ';' token
body: <pre><code>#include&lt;stdio.h&gt;
  #include&lt;conio.h&gt;
  #include&lt;stdlib.h&gt;
  
  typedef struct PROCESS{
          int priority;
          int lifecycle;
          int ttl; 
  
  }process1,process2,process3,process4,process5,process6;
  
  main(){
         PROCESS *waiting_queue;
         waiting_queue = process1;      //this is were I get the error. 
         waiting_queue =(PROCESS *)malloc(6*sizeof(PROCESS));
         if(!waiting_queue){printf("no memory for waiting queue   "); exit(0);}
  
  
         getch();       
  }
  </code></pre>
  
  <p>I am trying to create a struct array with pointer. I am getting the error. Expected primary expression before ';' token</p>