title: How do I use typedef and typedef enum in C?
body: <p>Consider:</p>
  
  <pre><code>#define MAXROW 20
  #define MAXCOL 60
  typedef State Grid[MAXROW+2] [MAXCOL+2]
  typedef enum state {DEAD,ALIVE} State
  </code></pre>
  
  <p>How do I use <code>typedef</code> and <code>typedef enum</code> in C? What does this part of the code do?</p>