title: Enum and anonymous enum in C++
body: <p><strong>1)</strong> The following code shows the index of the <strong>enum element wednesday</strong> .How can i make it to print the value instead of the index.</p>
  
  <pre><code>int main()
  {
      enum day{sunday,monday,tuesday,wednesday,thursday,friday,saturday};
      day d=wednesday;
      cout&lt;&lt;d;
      return 0;
  }
  </code></pre>
  
  <p><strong>2)</strong> In what situation will I prefer <strong>anonymous enum</strong> over <strong>enum</strong></p>