void main() { char*s[]={"iceland","Greenland","Ireland","Switzerland"}; char **ptr[]={s+3,s+2,s+1,s}; char ***p=ptr; printf(\%s ",**++p); printf(\%s ",*(*++p+3); printf(\%s ",*p[-2]+3); printf(\%s ",p[-1][-1]+1); }
@sushmita
i am not getting that, without the explanations, how you select this answer as BEST ?
@pradeepchaudhary
May you know the process, how to solve it, But by directly giving the answers, some other persons can't get it. ( By running this program in online compilers, everyone gets the answers )
This is really nice question
pradeepchaudhary can you please explain me step by step .??..It's very helpful for everyone
correct answer should be
Ireland
null
tzerland
reenland
I just did only 1 mistake here at address 403 in I missed "T" I write "Swizerland " instead of "Switzerland"
yeah correct it can give any garbage value Somoshree Datta 5
64.3k questions
77.9k answers
243k comments
79.7k users