Jan 18, 2011 at 7:22pm UTC
please explain the execution of this program
#include<stdio.h>
char *c[]={"ENTNG", "NST","AMAZI","FIRBE"};
char* *cp[]={c+3, c+2, c+1, c};
char ***cpp= cp;
void main() {
printf("%s",**++cpp);
printf("%s ",*--*++cpp+3);
printf("%s",*cpp[-2]+3);
printf("%s",cpp[-1][-1]+1);
}
Jan 18, 2011 at 7:33pm UTC
Interesting....
and please explain what you think it's doing, if you have any specific questions you will get a lot more response.
Jan 18, 2011 at 10:50pm UTC
Nah don't think I'll bother.
Jan 19, 2011 at 11:42am UTC
what is the meaning of the statement char **cp[]={c+3, c+2, c+1, c}; and
how will the statement char ***cpp=cp; will save the array since cpp is not an array.