title: how to assign a value to a enum in C?
body: <p>I have a <code>enum</code> and a <code>struct</code> defined like this:</p>
  
  <pre><code>typedef enum
  {
     MONDAY = 1,
     TUESDAY,
     WEDNESDAY
  } ThreeDays;
  
  typedef struct
  {
     int hello;
     ThreeDays day;
  } Weekday;
  
  static Weekday weekday = { 1, 2};
  </code></pre>
  
  <p>Then I got the following Error in lint:</p>
  
  <pre><code>Error 64: Type mismatch (initialization) (int/enum)
  </code></pre>
  
  <p>What is the reason of this Error? How can I correct it?</p>