I have been told that in C++ the concept of a string does not exist. A string is just an array of type char. So in the following code, is message an array because it doesn't really look like one?
char *message = "I am having trouble understanding pointers";
std::cout << message
The line above does not really resembel an array to me, is this just a short way of sayingchar *array[] = "some stuff";
I'M also confused by the line char *members[4] = {"Sally", "Alex", "George", "Martha"};
I thought that the number in the [] of a char array would dictate how many characters are in the array but in this case it's how many strings all together. What have I missed here.
Lastly, I can write a very very small pointer program that changes the value of x and then cout << x and accuratly predict the output but anything more compicated than that I'M completly lost. I don't understand the relationship between pointers and arrays nor do I understand any pointer that begins with more than one *. Thanks for any and all help.