I teach myself C from a book, and I'm trying to create a crossword puzzle. I need to create an array of strings, but you have all the problems. Also, I know little about the array ...
This is a piece of code:
char word1 [6] ="fluffy", word2[5]="small",word3[5]="bunny"; char words_array[3]; char *first_slot = &words_array[0]; words_array[0]=word1;
But I keep getting the message:
crossword.c:20:16: warning: assignment makes integer from pointer without a cast [enabled by default]
Not sure what the problem is ... I tried to find a way to create an array of strings, but no luck
Any help would be greatly appreciated
Sam
Wobblester
source share