558 views
0 votes
0 votes

main () {

static char *s[] = {

“ice”,

“green”,

“cone”,

“please”,

};

static char **ptr[] = {s+3,s+2,s+1,s};

char ***p = ptr;

printf(“\n%s”, **++p);

printf(“\n%s”, *--*++p+3);

printf(“\n%s”, *p[-2]+3);

printf(“\n%s”, p[-1][-1]+1);

}

 

  1. cone, ase, reen
  2. ice, green, cone
  3. green, cone, please
  4. None of the above

 

 

2 Answers

Related questions

4 votes
4 votes
1 answer
2
4 votes
4 votes
2 answers
3
sh!va asked Jul 16, 2016
1,285 views
In C/C++ an array of pointers is same as(A) Pointer to array(B) Pointer to pointer(C) Pointer to function (D) Pointer to structure