I'm trying to do this
Say I have a random text:
rabbit cat dog fish dog
the fish and cat
elephant and fish
and I want to store all the words in the text in the following arrays:
char word[10];
char* words_in_sentence[5];
char* sentences_in_text[9];
// individual word
// array of words in each sentence
// array of arrays of words in every sentence
How do I store my *words_in_sentence
entries to *sentences_in_text
?
I'm trying to access it like
sentences_in_text[sentence number][word position]