title: How to initialize an enum?
body: <pre><code>typedef enum
  {
      HEARTS = 0, 
      SPADES, 
      DIAMONDS, 
      CLUBS
  }Suits; //here HEARTS = 0, SPADES = 1, DIAMONDS = 2, and CLUBS = 3  
  
  int main()
  {
      Suits hand;
      play(hand);
      return 0;
  }
  
  void play(Suits hand)
  {
      printf("Testing.\n");
  }
  </code></pre>
  
  <p>When I compile something similar to this, the compiler gives me the error: implicit declaration of function 'play' and warning: 'menu' may be used uninitialized in this function. How can I fix these problems?</p>