How would I pass a char pointer to a array of pointers to a function? (think i said that right) I want to print out the strings from the command line arguments but this prints only the first char. seems like im dealing with a multidimensional array... im confused..
its type is char**
when we use subscript operator x[i] we gor char*, which is c-string. And << operator have overload which supports x-strings.
Compare:
1 2 3 4 5 6
constchar* a = "Hello";
std::cout << a;
constchar* b[] = {"hello", "world", "!"};
for (int i = 0; i < 3; +++i)
std::cout << b[i] << std::endl;