How to create an array of strings in C?
word_array[0] is a char, whereas word1 is a char *. Your character is not able to hold an address. An array of strings might look like it: If you rather want an array of pointers to your strings: And then: Maybe you should read this.