How the memory allocation is done for a char pointer array and double pointer.
char *s[]={"knowledge","is","power"};
char **p;
p=s;
cout<<++*p;
In the above code output given by compiler is-
nowledge
My question is just , how the values are assigned to pointer p and how it's incremented.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…