title: how to print an enumerated variable in C?
body: <p>I am using enumerated type declaration. I can't print it.</p>
  
  <p>So far I have written the following code. The question is how to print a enum type variable?     </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  int main()    
  {    
      enum day {monday,tuesday,wednwsday,thrusday,friday,saturday,sunday};    
      enum day week_st, week_end;
      week_st = monday;
      week_end = friday;
      if(week_st == monday)
      {
          printf("%s\n",week_end);
      }
      return 0;
  }
  </code></pre>