A
arkobose
hey everyone!
i have this little problem. consider the following declaration:
char *array[4] = {"wilson", "string of any size", "etc", "input"};
this is a common data structure used to store strings of any lengths
into an array of pointers to char type variable.
my problem is: given the declaration
char *array[SIZE];
how to store strings of any length into this array from the user input
using functions like "scanf", "gets" etc. ?
let me know if you get it!
-thanks,
arko
i have this little problem. consider the following declaration:
char *array[4] = {"wilson", "string of any size", "etc", "input"};
this is a common data structure used to store strings of any lengths
into an array of pointers to char type variable.
my problem is: given the declaration
char *array[SIZE];
how to store strings of any length into this array from the user input
using functions like "scanf", "gets" etc. ?
let me know if you get it!
-thanks,
arko