char* [] & string []

Hello,

What is the difference between a char* array and a string array.
char*[] is an array of pointers to char.
Each pointer in the array may be invalid, may be null, or may be pointing at a char allocated elsewhere. That char may or may not be an element of a char array, which may or may not be a valid C-string.

string[] is an array of strings. Each string holds a C++ string.
Thanks Cubbi.
i do not understand i mean i do not have any access to string type of data??
in c++..???
Last edited on
closed account (S6k9GNh0)
mj1709, your comment makes no sense. Please clarify and/or start your own topic.
i get it did you include the string header?
Topic archived. No new replies allowed.