Hello,
I was wondering if I can input multiple strings in "One" array.
Can it be done? Or not?
If yes, then how?
Please tell me.
Regards
Hello,
I was wondering if I can input multiple strings in "One" array.
Can it be done? Or not?
If yes, then how?
Please tell me.
Regards
char stringarray[numberofstrings][sizeoflongeststring];
Why do all that when you can just make a 2 dimensional array...
It amounts to the same thing and you don't have to use strcat() or strtok() to get at them.Code:MAX_STRINGS 100 MAX_LENGTH 30 // space for 100 strings 30 characters long char Words[MAX_STRINGS][MAX_LENGTH];