ProgrammingHard

printf("%zu", sizeof("a" "bc")); What is printed?

  1. A. 4
  2. B. 3
  3. C. 2
  4. D. 5

Correct answer: A. 4

Adjacent string literals are concatenated before any other step, so the literal is "abc", an array of 4 chars including the terminator.

More C Programming questions

Exams that ask this topic