I previously programmed with Java and now I need to learn C. I'm preety confused with C language and so i would really appreciate your help.
I need to write a program, which read words from input until it reads the word "end". I need to save words into array and size of array is not fixed, so i need to enlarge this array everytime. And particular word cannot be bigger than 80 characters.
After this, from all the words in array, I need to find 3 words which are first in alphabetical order and i need to print them out.
So would you guys at least give me some clues at how to start and which functions to use. Because I'm really not yet familiar with pointers and i'm confused because i'm used to Java. And i watch a couple of tutorials and i still do not know how to start.
So for array enlargement I know i need to use malloc() and realloc() functions.
But i do not know how to declare a array. If i'am right it can not be declared as array of Strings so i need to do all the things with characters?
Thanks, i would really appreciate any help.