title: Trouble using a loop to add characters to an array of "strings" in c?
body: <p>So i tried this both with the datatype char and then the data type int. Nomatter what the printf shows only the first letter of the inputted word. For example if someone inputs dog it will just say 'd'.
  My guess is maybe the syntax of word[i] only takes the first letter but im not sure how to fix that.
  Does anyone know how to fix this?</p>
  
  <pre><code>    #include &lt;stdio.h&gt;
      #include &lt;stdlib.h&gt;
      #include &lt;string.h&gt;
      #include &lt;time.h&gt;
      #define pause system("pause")
      #define cls system("cls")
  
  
  void getUserWords(int *counter, int words[]){
              int i;
  
              printf("How many words would you like to enter into the cross word puzzle\n");
              scanf("%i",&amp;*counter);
              for(i=0; i &lt; *counter; i++){
                  printf("Please enter word #%i\n",i+1);
                  scanf("%s",&amp;words[i]);
                  printf("The word %c will be added to the crossword puzzle\n",words[i]);
                  pause;
                  cls;
              }//end for
  
              printf("Your all your words have been successfully added to the crossword puzzle");
              cls;
          }//end getUserWords
  </code></pre>