ProgrammingModerate

char s[][4] = {"ab", "xyz"}; printf("%zu", sizeof s); What is printed?

  1. A. 8
  2. B. 6
  3. C. 7
  4. D. 4

Correct answer: A. 8

The array has two rows of four chars each, so sizeof s is 8.

More C Programming questions

Exams that ask this topic