last printf

*(*(cpp-1)-1)+3

gives =ST

second last printf

*(*(cpp-2)) +3 give BE

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.
>



-- 
  best wishes!!
Vaibhav Shukla
    DU-MCA

-- 
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.

Reply via email to