Ok, I read the previous posts on here, but things are a little blurry. I have no problem understanding single pointers and the similarities between them and arrays, but just get lost with doubles.
For example, I need to keep a list of strings and use dynamic allocation with it. I declare:
>>> char **thingies;
Now, if I allocate memory for a 32 char string to go in the 5 pointers spot:
>>> thingies[5] = malloc(32 * sizeof(char));
And store the string there:
>>> strcpy(thingies[5], "ajhdflkahsdkfhasasdf");
It seems like this would store the address and the string in the same place. Could someone plz explain if I have done this right or wrong and why.