1)chooses one word and the program prints out how much times this word appears in the text.
2)chooses one word and the program prints out in how many different lines of the text this word appears.
It also says : Consider as an end of input the character EOF and that one word is defined as a consecutive sequence of alphabetical characters that do not exceed the length of 100. The recognition of a word should be implemented on a new function.
First of all, observing the 2nd question, i think that i have to store the text in a 2d array. And that each row of the array should represent a row of the text. Is that right?
My problem is that, i do not know the length of the text, so how can i store it inside a dynamical array? I cannot use malloc