title: How to input strings into an array in C?
body: <p>I tried to get the inputs(strings) from user and store them in an array.But after I ran this code, the program instantly crashed.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  int main() {
      int i;
      char *word[3];
      for(i=0;i&lt;3;i++)
      {
          printf(" Enter a word: ");
          scanf("%s", &amp;word[i]);
      }
      printf("%s ", word[0]);
      return 0;
  }
  </code></pre>