I want to write function that take array of strings and return to me one string that contain all of the words i passed to this function
i have problem with how to pass to function (prototype)
here is the main :
void main()
{
char *words[]={{"a"},{"picture"},{"is"},{"worth"},{"a"},{"thous and"},{"words"}};
char *word=sentence(words);
puts(word);
}
and the prototpye of sentence function is like this
char *sentence(char ** words);
is it ok? or wrong and how can i get the first word
is it *words[i] ?
best regards