First of all I must say that I have just started with C. I've been doing some Java and C# as well but not very much of them too.
In my new course of C, which goes on much rapidly than one can catch something, I am given some material teaching pointers, structs, unions, bit structures and pointers to functions. And my exercise is to take an input from the user and store the words in input in an array. (i.e. break the input string from spaces and tabs and store the words).
Coming from Java to C, I don't have a smallest idea of how to do this!!!
Now my problem is how can I store in an array without knowing the lengths previously.
I've been googling for hours and found out that I could use readline() method to take the input. So that problem solved. But the rest, I don't have an idea.
The problem is I don't have a starting point. I don't know what to search for and what kind of a code should I write. All I ask for is a little hint so I could start off. I have all the material but I'm not intelligent enough to attack a problem like this with only reading material. Help me please, I'm desperate. :(