I have the following :
char *testString[] = {"geeksforgeeks", "unsorted", "sunday", "just", "sss" , NULL};
I need to traverse this so I am using:
char **a1 = testString;
So I need to understand what is happening here now.
What I understand :
a1would hold the address of first index oftestString.*a1= value at address of the first string.
< This is incorrect. *a = the first string on IDE>
**a1= should be the first string.*testString= the first string..
Where and why am I going wrong?
std::string. Are you sure you are writing in C++ and not in some other language that has the capital C in its name?