Can anybody explain how its printing output as "ink"
Posted
by giri
on Stack Overflow
See other posts from Stack Overflow
or by giri
Published on 2010-03-17T10:45:34Z
Indexed on
2010/03/17
10:51 UTC
Read the original article
Hit count: 265
Filed under:
c
Hi I am new to pointers in C. I know the basic concepts.In the below code how its printing the "ink" as output.
#include<stdio.h>
main()
{
static char *s[]={"black","white","pink","violet"};
char **ptr[]={s+3,s+2,s+1,s},***p;
p=ptr;
++p;
printf("%s",**p+1);
}
Thanks
© Stack Overflow or respective owner