ProgrammingHard

char g[2][3] = {"ab", "cde"}; printf("%c", g[1][2]); What is printed?

  1. A. e
  2. B. d
  3. C. c
  4. D. f

Correct answer: A. e

g[1] holds cde with no terminator needed, since it fills all three bytes. Its third character is e.

More C Programming questions

Exams that ask this topic