title: Create array of strings using pointers
body: <p>I want to create an array of strings in C. I want the computer to accept value from the user and store it in string <code>name[31]</code>. This should happen till the user enters <kbd>Ctrl</kbd>+<kbd>D</kbd>. When the user types in a name,  store it in another array called <code>storage</code>. </p>
  
  <p>My code so far:</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;string.h&gt;
  
  int main() {
      char name[31];
      char *storage[31];
      int i = 0;
      //Reading the name
      while( (int) name != EOF )
      {
          sscanf("%s", name);
          *storage[i] = &amp;name;
          i++;
      }
      for ( i = 0; i &lt; 31 ; i ++)
      {
  
          printf("%s", *storage[i]);
      }
  }
  </code></pre>