title: Is it possible to create an array of strings in the same way as one can create an array of integers?
body: <p>I'm trying to create an array of strings, by doing the following:</p>
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;cs50.h&gt;
  
  string words[] = {apple, bear, card, duck};
  
  int main(void)
  {
      for(int i = 0; i &lt; 4; i++)
      {
          printf(&quot;%s&quot;, words[i]);
      }
  }
  </code></pre>
  <p>I thought this was one of the ways that one could create an array, but when I try to compile, I get the error <code>error: use of undeclared identifier</code> for <code>apple</code>, <code>bear</code>, <code>card</code> and <code>duck</code>. However, when I try the same thing with integers:</p>
  <pre><code>#include &lt;cs50.h&gt;
  #include &lt;stdio.h&gt;
  
  int numbers[] = {1, 2, 3, 4};
  
  int main(void)
  {
      for(int i = 0; i &lt; 4; i++)
      {
          printf(&quot;%i&quot;, numbers[i]);
      }
  }
  </code></pre>
  <p>it compiles and runs without a hitch. Is it simply not possible to create an array of strings using this method, or is there something else I have missed? Any help would be much appreciated.</p>