Hey there, I'm fairly new to C++ so please bear with me as I almost insult your intelligence with this simple question
I've first created an array of char pointers, and fed into it 2 string literals. I'm then assuming that the original array becomes 2 dimensional; with each element containing each literal, and down a level so to speak each character of said literal.Code:char *nu_array[] = {"HELLO", "WORLD"}; char **p = nu_array; for(int i = 0; i != 6; i++ ){ cout << *(*p + i) << endl;
Assuming that this above assumption is right, how do I go about manipulating said array. I've toyed about with the code and just managed to extract the "Hello'.
Also, all the examples I've seen seem to require a size be stated before hand to manipulate it. Is this the only way I can do it?