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