title: C - how to store multiple strings in an array
body: <p>Wondering how store different strings in an array.
  For example a user would input 'qwe' and the program would then store that in an array variable[0]. Entering another string would then store it as variable[1] and so on</p>
  
  <pre><code>int
  main(int argc, char *argv[]) {
      char variable[1000];
      int i;
  
      printf("enter a variable\n");
      scanf("%s", variable);
      for (i = 0; ??? ;i++) {
  
  
          printf("The variable entered was: %s\n",variable[i]);
      }
  return 0;
  </code></pre>
  
  <p>Im new to C so I have no idea what im doing. but thats what I have came up with so far and was wondering if I could get some help with filling in the rest
  Thanks!</p>