title: Find first and last string words according to ascending alphabetical order
body: <p>As topic, the number of words to key in is determined by the user. Assume it is &lt;=10. I have made some comments on the code to errors im facing, which lead to the comparison of string part not working obviously.</p>
  
  <pre><code>int main()
  {
      int size, i;
      char wordArray[10][20]; // buffer of 10 words of 20 length
      char first[20]; // buffer 20 length
      char last[20]; // buffer 20 length
      printf("Enter size: ");
      scanf("%d", &amp;size);
      printf("Enter %d words separated by space: ", size);
      for (i = 0; i &lt; size; i++)
      {
          scanf("%s", wordArray[i]);
      }
      findWord(wordArray, size, &amp;first, &amp;last);
  }
  
  void findWord(char word[][20], int size, char *first, char *last)
  {
      *first = word[i]; // initialize to first element. 
      *last = word[i];
      printf("first = %s", first); // for debugging purposes I got some weird symbol as prefix before my first element of word. Why is it so?
      printf("last = %s", last);
      int i = 0;
      for (i = 0; i &lt; size; i++)
      {
          if (strcmp(word[i], *first) &gt; 1)
          {
              *last = *first;
              *first = word[i];
          }
          else if (strcmp(word[i], *last) &lt; 1)
          {
              *last = word[i];
          }
      }
  }
  </code></pre>