I want to declare a three dimensional array of strings where each row has two strings.
Here I am able to declare it:
char *szArray[][2] = {
{"string1", "string2"},
{"string3", "string4"},
{"string5", "string6"},
{0, 0}
};
I want to do the same thing but number of rows are dynamically allocated.
Here you can assume 1st dimension is dynamically decided. 2nd dimension is 2, 3rd dimension is 25.
Tried in many ways no luck :(.
Thanks in advance !