It won't cause a compile error, but you should be aware that this would still be wrong:
Code:
wordArray = malloc(num_words*sizeof(char));
It should be:
Code:
wordArray = malloc(num_words*sizeof(char*));
But I'd recommend:
Code:
wordArray = malloc(num_words*sizeof(wordArray[0]));