title: Array of structs
body: <p>Trying to create an array of structs (new to C), but I am getting a "array type has incomplete element type" when I try to initialize the array.  What am I doing incorrectly? </p>
  
  <pre><code>typedef struct morsechar
  {
     char  character;
     char* morse;
  } MorseChar;
  
  struct MorseChar lookup[] ={{'A', ".-"},    {'B', "-..."},  {'C', "-.-."},  
                              {'D', "-.."},   {'E', "."},     {'F', "..-."},      
                              {'G', "--."},   {'H', "...."},  {'I', ".."},
                              {'J', ".---"},  {'K', "-.-"},   {'L', ".-.."},
                              {'M', "--"},    {'N', "-."},    {'O', "---"},
                              {'P', ".--."},  {'Q', "--.-"},  {'R', ".-."},
                              {'S', "..."},   {'T', "-"},     {'U', "..-"},
                              {'V', "...-"},  {'W', ".--"},   {'X', "-..-"},
                              {'Y', "-.--"},  {'Z', "--.."},  {'0', "-----"}, 
                              {'1', ".----"}, {'2', "..---"}, {'3', "...--"},
                              {'4', "....-"}, {'5', "....."}, {'6', "-...."},    
                              {'7', "--..."}, {'8', "---.."}, {'9', "----."},
                              {'.', "#"},     {'-', "^"}}; 
  </code></pre>