this is probably an almost trivial thing, but so far it has eluded me somewhat.
char * a3[2];
a3[0] = "abc";
a3[1] = "def";
char ** p;
p = a3;
it works:
printf("%p - \"%s\"\n", p, *(++p));
this is not true:
printf("%p - \"%s\"\n", a3, *(++a3));
The error I get when compiling:
lvalue required as an increment operand
what am I doing wrong, why and what is the solution for "a3"?
source share