title: how to compare enum values
body: <p>I have a question about <code>enum</code> C.</p>
  
  <p>I defined an <code>enum</code> in the following way:</p>
  
  <pre><code>typedef enum
  {
      Hello1 = 1,
      Hello2 = 2,
      Hello3 = 3
  }Hello
  
  Hello hello;
  
  int value = 3;  
  </code></pre>
  
  <p>then how to compare the value with the value in <code>Hello</code>?</p>
  
  <p>for example:</p>
  
  <pre><code>if(value == Hello3)
  {
  }
  </code></pre>
  
  <p>or should I do it like the following:</p>
  
  <pre><code>if(value == Hello.Hello3)
  {
  }
  </code></pre>