title: How do I define the values of the variables inside a C Struct?
body: <p>So I have the following:</p>
  
  <pre><code>struct semaphore{
  int count; //or whatever value is needed
  struct PCB *Sem_Queue;
  };
  struct semaphore Forks[5]; 
  struct semaphore Doorman;
  Doorman.count =4;
  </code></pre>
  
  <p>I want to set count = 4 for Doorman, but with the above code I get a syntax error. What am I doing wrong?</p>