after third printf cpp points to c+1 then c[-1][-1] let it point to c+2+(-1) which is c+1 .. next its easy just add one to the string pointed out ..!!
On Fri, Jul 15, 2011 at 10:45 PM, swetha rahul <swetharahu...@gmail.com>wrote: > Hi, > > > #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); > } > > > The answer is AMAZING BEST ... Can somebody explain the last printf > alone.?? > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.