@rahmu: Yeh now I see your point. Again this is not really my code, I just copied/pasted it and did some edits. I should've edited that part as well though. My bad :)
@ZeRaW: The 50 is the size of the array that holds the words starting with "th". It is constant and that's bad, but that's how the code I got online was, and to be honest I do not know of a better implementation (which allows for a virtually unlimited number of words), maybe I should use a linked-list instead of the array?
-> Get user input, if user input = EOF exit.
-> Count number of " th"
-> output count
That's exactly what the code does.
@everyone: If you've got a few minutes to spare and know of a better implementation, please post it. I'll be glad to learn from you. Thanks.