hi every body.
i have one fundamental question
in this code : constchar* a[2] = {"ab","bc"};
"a" array is a array of pointers but why we get it "ab" and "bc" instead of address?
well your are confusing yourself with array of pointers.
names is array of pointers to char.
so names[0] type is const char *,once you gives this type of datatype to any ostream or printf,it will print the data pointed by that pointer,in this case it will print ab.