I am going to store arrays of strings in an array in C.
for instance
{ {"hello", "world"}, {"my", "name", "is"}, {"i'm", "beginner", "point", "makes"} }
I would like to save the above data.
I tried to use
char *arr1 = {"hello", "world"}; char *arr2 = {"my", "name", "is"}; char *arr3 = {"i'm", "beginner", "point", "makes"}
But I do not know how to store these arrays in one array.
Thanks in advance.
ps.
How to print the whole item using?
const char **arr[] = {arr1, arr2, arr3};
source share