ProgrammingHardTCS NQT · Infosys

char *words[] = {"one", "two", "three"}; char **pp = words + 1; printf("%s", *pp + 1); What is printed?

  1. A. wo
  2. B. two
  3. C. one
  4. D. hree

Correct answer: A. wo

pp points to words[1], which is "two", and *pp + 1 starts one character later. The output is wo.

More C Programming questions

Exams that ask this topic