title: In C, How can I use an array of strings as a lookup table?
body: <p>I'm so stuck. I'm learning <code>C</code> and have this question: </p>
  
  <p>How can I use an array of strings as a lookup table?</p>
  
  <p>I have a list of 'keys:</p>
  
  <pre><code>"A", "A#", "B", "Bb", "C", "C#", "D", "D#", "E", "F", "F#", "G", "G#"
  </code></pre>
  
  <p>And each will refer to a specific int 'value' (which isn't unique). 
  e.g. <code>"A" -&gt; 9</code>, <code>"A#" -&gt; 10</code>, <code>"Bb" -&gt; 10</code></p>
  
  <p>I found an answer (<a href="https://stackoverflow.com/questions/14731939/store-known-key-value-pairs-in-c">store known key/value pairs in c</a>) that I think is pointing me in the right direction when it says "I would...recommend just using an array of strings as a lookup table"</p>
  
  <p>BUT I don't know how to actually implement an array of strings as a lookup table?</p>