This is regarding single-char pointers and double-char pointers. Here I am trying to initialize a double-pointer with an array of strings while defining the new pointer.
I have tried
char arry[] = "Hello World"
char* cptr = "Hello World"
It works fine and the difference is the second line is only read-only. In the same way, I am trying to use double pointers
char *darry[] = {"Hello", "World", "C", "Ubuntu"};
char **da = {"Hello", "World", "C", "Ubuntu"};
I thought the double pointer(da) would work the same as the single pointer but it is giving me an error. Could anyone point me in the right direction? Thanks