ProgrammingHard

char *words[] = {"ab", "cd", "ef"}; char **pp = words + 1; printf("%s", *pp + 1); What is printed?

  1. A. cd
  2. B. d
  3. C. c
  4. D. ab

Correct answer: B. d

pp points at the second pointer, so *pp is "cd", and adding 1 starts the output at 'd'.

More C Programming questions

Exams that ask this topic